Created
May 10, 2018 14:47
-
-
Save gc-codesnippets/8317ae8f1832f74dde26292f6ff2763c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Query { | |
user(id: ID!): User | |
users: [User!]! | |
} | |
type Mutation { | |
createUser(name: String!): User! | |
updateUser(id: ID!, name: String!): User | |
deleteUser(id: ID!): User | |
} | |
type User { | |
id: ID! | |
name: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment