Skip to content

Commit 805d8cd

Browse files
authored
Use express.json in express middleware example (#7872)
1 parent 18a3827 commit 805d8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/api/standalone.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ await server.start();
196196
app.use('/',
197197
cors<cors.CorsRequest>(),
198198
// 50mb is the limit that `startStandaloneServer` uses, but you may configure this to suit your needs
199-
bodyParser.json({ limit: '50mb' }),
199+
express.json({ limit: '50mb' }),
200200
// expressMiddleware accepts the same arguments:
201201
// an Apollo Server instance and optional configuration options
202202
expressMiddleware(server, {

0 commit comments

Comments
 (0)