Created
August 10, 2019 11:10
-
-
Save mbbhalla/24481c7826ae9a3c53b3ad0016e37eac 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
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