Last active
May 10, 2018 12:08
-
-
Save gc-codesnippets/88d88412e94312c15d066cd7cd65d43b 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: [Post!]! | |
post(id: ID!): Post | |
} | |
type Mutation { | |
createPost(title: String!, content: String!, published: Boolean): Post! | |
updatePost(id: ID!, title: String, content: String, published: Boolean): 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