Skip to content

Instantly share code, notes, and snippets.

@pratikagashe
Created February 25, 2020 13:38
Show Gist options
  • Save pratikagashe/38a7fc6f184b1b14f443d80a3b0ad782 to your computer and use it in GitHub Desktop.
Save pratikagashe/38a7fc6f184b1b14f443d80a3b0ad782 to your computer and use it in GitHub Desktop.
graphql mutation to updateUserById: postgraphile demo
import gql from 'graphql-tag'
export default gql`
mutation updateUserById($id: Int!, $UserPatch: UserPatch!) {
updateUserById(input: { id: $id, userPatch: $UserPatch }) {
clientMutationId
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment