Skip to content

Instantly share code, notes, and snippets.

@kkworden kkworden/schema.js

Created Dec 10, 2018
What would you like to do?
Schema with send and receive operations
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
You can’t perform that action at this time.