Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@slmyers
Last active July 27, 2019 19:04
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 slmyers/40bee38d1ba797c13a3724203cf645a4 to your computer and use it in GitHub Desktop.
Save slmyers/40bee38d1ba797c13a3724203cf645a4 to your computer and use it in GitHub Desktop.
lesson0 graphql schema
# this file was autogenerated by updateSchema.js
# yarn update:schema
type Mutation {
dummy: Boolean
}
"""An object with an ID"""
interface Node {
"""The id of the object."""
id: ID!
}
type Query {
user(id: Int): User
"""Fetches an object given its ID"""
node(
"""The ID of an object"""
id: ID!
): Node
}
type User implements Node {
"""The ID of an object"""
id: ID!
userId: Int!
name: String!
email: String!
color: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment