Update middleware to match apollo-upload-server readme instructions.
This commit is contained in:
parent
2cf16a48af
commit
a7cf818e15
@ -17,12 +17,11 @@ server
|
||||
.use(cors())
|
||||
// Enable gzip
|
||||
.use(compress())
|
||||
// Parse body
|
||||
.use(koaBody())
|
||||
|
||||
// GraphQL API
|
||||
router.post(
|
||||
'/graphql',
|
||||
koaBody(),
|
||||
apolloUploadServer.apolloUploadKoa({ uploadDir: './uploads' }),
|
||||
graphqlServerKoa.graphqlKoa({
|
||||
schema: graphqlTools.makeExecutableSchema({ typeDefs: [types], resolvers })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user