Skip to content

Instantly share code, notes, and snippets.

@k2tzumi
Created October 17, 2017 08:06
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 k2tzumi/fa054406f15634de15d5445700e08a6b to your computer and use it in GitHub Desktop.
Save k2tzumi/fa054406f15634de15d5445700e08a6b to your computer and use it in GitHub Desktop.
GraphQLサンプル
# refs http://graphql.org/graphql-js/mutations-and-input-types/
input MessageInput {
content: String
author: String
}
type Message {
id: ID!
content: String
author: String
}
type Query {
getMessage(id: ID!): Message
}
type Mutation {
createMessage(input: MessageInput): Message
updateMessage(id: ID!, input: MessageInput): Message
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment