Last active
June 29, 2020 04:29
-
-
Save antonioftamura/c5180b06c8dd9530c6bcb69ab8fa8b6e to your computer and use it in GitHub Desktop.
schema.graphql
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
schema { | |
query: Query | |
mutation: Mutation | |
} | |
type Query { | |
getTodo(id:ID!): Todo | |
allTodos: [Todo] | |
} | |
type Mutation { | |
addTodo(id: ID!, name: String, description: String): Todo! | |
} | |
type Todo { | |
id: ID! | |
name: String! | |
description: String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment