Skip to content

Instantly share code, notes, and snippets.

@abhiaiyer91
Created November 13, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhiaiyer91/76ea26acf57a5e498f4a8c7d60ae357f to your computer and use it in GitHub Desktop.
Save abhiaiyer91/76ea26acf57a5e498f4a8c7d60ae357f to your computer and use it in GitHub Desktop.
type Query {
user(where: UserWhereUniqueInput!): User
users(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [User]!
usersConnection(where: UserWhereInput, orderBy: UserOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): UserConnection!
node(id: ID!): Node
}
type Mutation {
createUser(data: UserCreateInput!): User!
updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
updateManyUsers(data: UserUpdateManyMutationInput!, where: UserWhereInput): BatchPayload!
upsertUser(where: UserWhereUniqueInput!, create: UserCreateInput!, update: UserUpdateInput!): User!
deleteUser(where: UserWhereUniqueInput!): User
deleteManyUsers(where: UserWhereInput): BatchPayload!
}
type Subscription {
user(where: UserSubscriptionWhereInput): UserSubscriptionPayload
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment