File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 },
77 "dependencies" : {
88 "graphcool-binding" : " 0.4.1" ,
9- "graphql-import" : " 0.1.9" ,
109 "graphql-yoga" : " 0.7.0"
1110 },
1211 "devDependencies" : {
Original file line number Diff line number Diff line change 11const { GraphQLServer } = require ( 'graphql-yoga' )
2- const { importSchema } = require ( 'graphql-import' )
32const { Graphcool } = require ( 'graphcool-binding' )
4- const typeDefs = importSchema ( './src/schema.graphql' )
53
64const resolvers = {
75 Query : {
@@ -46,12 +44,12 @@ const resolvers = {
4644}
4745
4846const server = new GraphQLServer ( {
49- typeDefs,
47+ typeDefs : './src/schema.graphql' ,
5048 resolvers,
5149 context : req => ( {
5250 ...req ,
5351 db : new Graphcool ( {
54- schemaPath : './database/schema.generated.graphql' ,
52+ typeDefs : './database/schema.generated.graphql' ,
5553 endpoint : 'http://localhost:60000/graphql-boilerplate/dev' ,
5654 secret : 'mysecret123' ,
5755 } ) ,
You can’t perform that action at this time.
0 commit comments