Skip to content

Instantly share code, notes, and snippets.

@cmelgarejo
Created July 14, 2019 17:44
Show Gist options
  • Save cmelgarejo/c8f2c810a14547129049c23c45709cd3 to your computer and use it in GitHub Desktop.
Save cmelgarejo/c8f2c810a14547129049c23c45709cd3 to your computer and use it in GitHub Desktop.
# Types
type User {
id: ID
email: String
userId: String
}
# Input Types
input UserInput {
email: String
userId: String
}
# Define mutations here
type Mutation {
createUser(input: UserInput!): User!
updateUser(input: UserInput!): User!
deleteUser(userId: ID!): Boolean!
}
# Define queries here
type Query {
users(userId: ID): [User]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment