Skip to content

Commit

Permalink
Allow user to configure apollo graph engine
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Jan 31, 2020
1 parent 308ec48 commit d67edb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-news-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystonejs/app-graphql': patch
---

Fixed bug preventing configuration of apollo graph engine from `GraphQLApp()`.
2 changes: 1 addition & 1 deletion packages/app-graphql/lib/apolloServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ function createApolloServer(keystone, apolloConfig, schemaName, dev) {
const server = new ApolloServer({
maxFileSize: 200 * 1024 * 1024,
maxFiles: 5,
...apolloConfig,
...keystone.getAdminSchema({ schemaName }),
context: ({ req }) => ({
...keystone.getGraphQlContext({ schemaName, req }),
Expand All @@ -163,6 +162,7 @@ function createApolloServer(keystone, apolloConfig, schemaName, dev) {
tracing: dev,
}),
formatError: _formatError,
...apolloConfig,
});
keystone.registerSchema(schemaName, server.schema);

Expand Down

0 comments on commit d67edb8

Please sign in to comment.