Created
May 10, 2018 12:32
-
-
Save gc-codesnippets/1e02d64c6eb1a73c55c0613e06bed6fc to your computer and use it in GitHub Desktop.
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
type Query { | |
posts(searchString: String): [Post!]! | |
} | |
type Mutation { | |
createDraft(title: String!, content: String!): Post | |
publish(id: ID!): Post | |
deletePost(id: ID!): Post | |
} | |
type Post { | |
id: ID! | |
title: String! | |
content: String! | |
published: Boolean! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment