Created
January 18, 2017 15:25
-
-
Save zgababa/c0a3bf4dbc901f2f341239cdb767731f to your computer and use it in GitHub Desktop.
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
'use strict'; | |
const graphql = require('graphql'); | |
const pokemonType = require('./pokemon/pokemon'); | |
const schema = new graphql.GraphQLSchema({ | |
query : new graphql.GraphQLObjectType({ | |
name : 'Query', | |
fields : { | |
pokemon : pokemonType | |
} | |
}) | |
}); | |
module.exports = schema; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment