hyperlog-core / hyperlog-backend

Backend for hyperlog
0 stars 0 forks source link

Add option to disconnect the user profile #66

Open BrainBuzzer opened 4 years ago

BrainBuzzer commented 4 years ago

The GitHub profile that the user connects with should be detachable from the profile. So we'll have to add a mutation to disconnect the user profiles.

nikochiko commented 4 years ago

I was scrolling through some code, there is already a DeleteGithubProfile mutation there,

mutation {
  deleteGithubProfile {
    success: String!
    errors: [String!]
  }
}

It deletes the github profile associated with the user and throws an error message if no github profile is attached. Maybe test if it really works and I'll also try to create some form of documentation to track the existing queries/mutations