Created
October 17, 2017 08:06
-
-
Save k2tzumi/fa054406f15634de15d5445700e08a6b to your computer and use it in GitHub Desktop.
GraphQLサンプル
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
# 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