Skip to content

Instantly share code, notes, and snippets.

@antonioftamura
Last active June 29, 2020 04:29
Show Gist options
  • Save antonioftamura/c5180b06c8dd9530c6bcb69ab8fa8b6e to your computer and use it in GitHub Desktop.
Save antonioftamura/c5180b06c8dd9530c6bcb69ab8fa8b6e to your computer and use it in GitHub Desktop.
schema.graphql
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