Skip to content

Instantly share code, notes, and snippets.

@vniche
Last active March 7, 2020 00:58
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 vniche/fc16f2fad570d54ddd3e15565fd17b60 to your computer and use it in GitHub Desktop.
Save vniche/fc16f2fad570d54ddd3e15565fd17b60 to your computer and use it in GitHub Desktop.
GraphQL Schema
scalar Date
schema {
query: Query
mutation: Mutation
}
type Query {
user(id: ID!): User!
users: [User!]
}
type User {
id: ID!
name: String!
surename: String!
createdAt: Date!
}
input NewUser {
name: String!
surename: String!
}
type Mutation {
signup(input: NewUser!): ID!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment