Last active
April 11, 2018 10:48
-
-
Save wojciech-bilicki/fffb450b01776c93544701cddf331bf2 to your computer and use it in GitHub Desktop.
mock data
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
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