Skip to content

Instantly share code, notes, and snippets.

@mbbhalla
Created August 10, 2019 11:10
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 mbbhalla/24481c7826ae9a3c53b3ad0016e37eac to your computer and use it in GitHub Desktop.
Save mbbhalla/24481c7826ae9a3c53b3ad0016e37eac to your computer and use it in GitHub Desktop.
type Link {
url: String!
description: String!
}
type Query {
# a type of query which returns all links
allLinks: [Link!]!
}
type Mutation {
createLink(url: String!, description: String!): Link
}
schema {
query: Query,
mutation: Mutation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment