🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
Huh, apparently for 5 years (since v4.16.0) you can do express.json() instead of also installing body-parser. Maybe we should do that in the standalone server and in our docs around using expressMiddleware.
On the other hand, perhaps it's nicer to directly depend on your dependencies so you can get bug fixes via direct upgrades rather than transitive upgrades, so maybe we should leave it as is.
Huh, apparently for 5 years (since v4.16.0) you can do
express.json()
instead of also installingbody-parser
. Maybe we should do that in the standalone server and in our docs around using expressMiddleware.On the other hand, perhaps it's nicer to directly depend on your dependencies so you can get bug fixes via direct upgrades rather than transitive upgrades, so maybe we should leave it as is.
See https://community.apollographql.com/t/is-it-necessary-to-install-bodyparser/5163