Created
July 14, 2019 17:44
-
-
Save cmelgarejo/c8f2c810a14547129049c23c45709cd3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Types | |
type User { | |
id: ID | |
email: String | |
userId: String | |
} | |
# Input Types | |
input UserInput { | |
email: String | |
userId: String | |
} | |
# Define mutations here | |
type Mutation { | |
createUser(input: UserInput!): User! | |
updateUser(input: UserInput!): User! | |
deleteUser(userId: ID!): Boolean! | |
} | |
# Define queries here | |
type Query { | |
users(userId: ID): [User] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment