mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
add back limit setting
This commit is contained in:
parent
e199fba6fb
commit
b0e63d8b61
1 changed files with 7 additions and 4 deletions
|
@ -81,8 +81,11 @@ const createApolloServer = ({
|
||||||
WebApp.connectHandlers.use(universalCookiesMiddleware());
|
WebApp.connectHandlers.use(universalCookiesMiddleware());
|
||||||
|
|
||||||
// parse request
|
// parse request
|
||||||
WebApp.connectHandlers.use(bodyParser.json());
|
WebApp.connectHandlers.use(bodyParser.json({ limit: getSetting('apolloServer.jsonParserOptions.limit') }));
|
||||||
WebApp.connectHandlers.use(config.path, bodyParser.text({ type: 'application/graphql' }));
|
WebApp.connectHandlers.use(
|
||||||
|
config.path,
|
||||||
|
bodyParser.text({type: 'application/graphql'})
|
||||||
|
);
|
||||||
|
|
||||||
// Provide the Meteor WebApp Connect server instance to Apollo
|
// Provide the Meteor WebApp Connect server instance to Apollo
|
||||||
// Apollo will use it instead of its own HTTP server
|
// Apollo will use it instead of its own HTTP server
|
||||||
|
@ -168,8 +171,8 @@ Meteor.startup(() => {
|
||||||
},
|
},
|
||||||
apolloApplyMiddlewareOptions: {
|
apolloApplyMiddlewareOptions: {
|
||||||
bodyParser: false, // added manually later
|
bodyParser: false, // added manually later
|
||||||
...getApolloApplyMiddlewareOptions()
|
...getApolloApplyMiddlewareOptions(),
|
||||||
}
|
},
|
||||||
// config: ....
|
// config: ....
|
||||||
// contextFromReq: ....
|
// contextFromReq: ....
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue