Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Created April 11, 2018 10:32
Show Gist options
  • Save wojciech-bilicki/68e584849c9afd2299a817a710f8c8d4 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/68e584849c9afd2299a817a710f8c8d4 to your computer and use it in GitHub Desktop.
Author schema
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