Last active
March 7, 2020 00:58
-
-
Save vniche/fc16f2fad570d54ddd3e15565fd17b60 to your computer and use it in GitHub Desktop.
GraphQL Schema
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
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