Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Last active April 11, 2018 10:48
Show Gist options
  • Save wojciech-bilicki/fffb450b01776c93544701cddf331bf2 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/fffb450b01776c93544701cddf331bf2 to your computer and use it in GitHub Desktop.
mock data
import {makeExecutableSchema, addMockFunctionsToSchema} from 'graphql-tools';
const typeDefs = `
type Author {
age: Int
name: String,
Books: [String]
}
`;
const schema = makeExecutableSchema({typeDefs});
addMockFunctionsToSchema({schema})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment