Skip to content

Instantly share code, notes, and snippets.

@gc-codesnippets
Created May 10, 2018 12:32
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 gc-codesnippets/1794ffde373bd970c78fe9ce5f17f0d7 to your computer and use it in GitHub Desktop.
Save gc-codesnippets/1794ffde373bd970c78fe9ce5f17f0d7 to your computer and use it in GitHub Desktop.
type Query {
posts: [Post!]!
post(id: ID!): Post
description: String!
}
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