Created
April 11, 2018 10:32
-
-
Save wojciech-bilicki/68e584849c9afd2299a817a710f8c8d4 to your computer and use it in GitHub Desktop.
Author schema
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} from 'graphql-tools'; | |
const typeDefs = ` | |
type Author { | |
age: Int | |
name: String, | |
Books: [String] | |
} | |
`; | |
const schema = makeExecutableSchema(typeDefs); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment