Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed May 16, 2024
1 parent 0782ba9 commit d5176b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/graphql/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import express from 'express';
import type express from 'express';
import { ApolloServerPlugin, ApolloServer } from '@apollo/server';
import { expressMiddleware } from '@apollo/server/express4';
import bodyParser from 'body-parser';
Expand Down Expand Up @@ -45,6 +45,7 @@ export const addGraphqlRoutes = async (
await apolloIndex.start();
await apolloDrive.start();

// fixes request entity too large
router.use(bodyParser.json({ limit: "50mb" }));
router.use(bodyParser.urlencoded({ limit: "50mb", extended: true, parameterLimit: 50000 }));

Expand Down

0 comments on commit d5176b0

Please sign in to comment.