Skip to content

Commit

Permalink
Use express.json in express middleware example (#7872)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strandor authored Apr 18, 2024
1 parent 18a3827 commit 805d8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/api/standalone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ await server.start();
app.use('/',
cors<cors.CorsRequest>(),
// 50mb is the limit that `startStandaloneServer` uses, but you may configure this to suit your needs
bodyParser.json({ limit: '50mb' }),
express.json({ limit: '50mb' }),
// expressMiddleware accepts the same arguments:
// an Apollo Server instance and optional configuration options
expressMiddleware(server, {
Expand Down

0 comments on commit 805d8cd

Please sign in to comment.