mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31: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());
|
||||
|
||||
// parse request
|
||||
WebApp.connectHandlers.use(bodyParser.json());
|
||||
WebApp.connectHandlers.use(config.path, bodyParser.text({ type: 'application/graphql' }));
|
||||
WebApp.connectHandlers.use(bodyParser.json({ limit: getSetting('apolloServer.jsonParserOptions.limit') }));
|
||||
WebApp.connectHandlers.use(
|
||||
config.path,
|
||||
bodyParser.text({type: 'application/graphql'})
|
||||
);
|
||||
|
||||
// Provide the Meteor WebApp Connect server instance to Apollo
|
||||
// Apollo will use it instead of its own HTTP server
|
||||
|
@ -168,8 +171,8 @@ Meteor.startup(() => {
|
|||
},
|
||||
apolloApplyMiddlewareOptions: {
|
||||
bodyParser: false, // added manually later
|
||||
...getApolloApplyMiddlewareOptions()
|
||||
}
|
||||
...getApolloApplyMiddlewareOptions(),
|
||||
},
|
||||
// config: ....
|
||||
// contextFromReq: ....
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue