Created
December 10, 2018 20:56
-
-
Save kkworden/fcfd07d31a3bd6c2311d5786b9a50785 to your computer and use it in GitHub Desktop.
Schema with send and receive operations
This file contains hidden or 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
const buildSchema = require('graphql').buildSchema; | |
const schema = ` | |
type Query { | |
messages: [String] | |
} | |
type Mutation { | |
sendMessage(nickname: String!, message: String!): Boolean | |
} | |
`; | |
module.exports = buildSchema(schema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment