Skip to content

Commit 8fcbed6

Browse files
committed
graphql-yoga@0.7.0
1 parent 0b4fa62 commit 8fcbed6

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

basic/server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
},
77
"dependencies": {
88
"graphcool-binding": "0.4.1",
9-
"graphql-import": "0.1.9",
109
"graphql-yoga": "0.7.0"
1110
},
1211
"devDependencies": {

basic/server/src/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const { GraphQLServer } = require('graphql-yoga')
2-
const { importSchema } = require('graphql-import')
32
const { Graphcool } = require('graphcool-binding')
4-
const typeDefs = importSchema('./src/schema.graphql')
53

64
const resolvers = {
75
Query: {
@@ -46,12 +44,12 @@ const resolvers = {
4644
}
4745

4846
const 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
}),

0 commit comments

Comments
 (0)