From 805d8cd3cccf23ee1dc2be41614873210e126222 Mon Sep 17 00:00:00 2001 From: Strandor Date: Thu, 18 Apr 2024 15:16:59 +0000 Subject: [PATCH] Use `express.json` in express middleware example (#7872) --- docs/source/api/standalone.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/api/standalone.mdx b/docs/source/api/standalone.mdx index 35ca4d0c485..56dc61656ea 100644 --- a/docs/source/api/standalone.mdx +++ b/docs/source/api/standalone.mdx @@ -196,7 +196,7 @@ await server.start(); app.use('/', cors(), // 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, {