Last active
July 27, 2019 19:04
-
-
Save slmyers/40bee38d1ba797c13a3724203cf645a4 to your computer and use it in GitHub Desktop.
lesson0 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
# 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