apollo-server/packages
Jesse Rosenberger 034383f491
Consistently use parent, rather than root, as first resolver argument.
In an effort to maintain consistency and semantically correct meaning,
this changes (only in documentation and internal Apollo Server tests) the
name of the first argument in resolver signatures to use `parent` rather
than `root`.

While `root` certainly makes sense when the resolver is belonging to the
root `Query` or `Mutation` type, once nested field resolvers begin getting
called, the more semantically correct term would seem to be `parent`.

Since `parent` still makes sense at the root level, and since resolvers
frequently get copied and pasted into more deeply-nested positions, putting
this pattern in place for apps which are just beginning might just help
someone more clearly understand the relationship in the future — without
incorrectly thinking that a nested resolver is accessing the root of the
graph, rather than the parent.
2018-11-16 20:37:26 +02:00
..
apollo-cache-control Publish 2018-11-13 15:58:57 +02:00
apollo-datasource Publish 2018-11-07 08:17:21 -08:00
apollo-datasource-rest Publish 2018-11-07 08:17:21 -08:00
apollo-engine-reporting aer/Default to headers for client identity in 2018-11-13 17:36:38 -08:00
apollo-engine-reporting-protobuf Publish 2018-11-07 08:17:21 -08:00
apollo-server Publish 2018-11-13 15:58:57 +02:00
apollo-server-azure-functions Publish 2018-11-13 15:58:57 +02:00
apollo-server-cache-memcached Publish 2018-11-07 08:17:21 -08:00
apollo-server-cache-redis Publish 2018-11-07 08:17:21 -08:00
apollo-server-caching Publish 2018-11-07 08:17:21 -08:00
apollo-server-cloud-functions Publish 2018-11-13 15:58:57 +02:00
apollo-server-cloudflare Publish 2018-11-13 15:58:57 +02:00
apollo-server-core Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
apollo-server-env Publish 2018-11-07 08:17:21 -08:00
apollo-server-errors Publish 2018-11-07 08:17:21 -08:00
apollo-server-express Fix connect integration sample code (#1973) 2018-11-16 13:35:42 +02:00
apollo-server-hapi Publish 2018-11-13 15:58:57 +02:00
apollo-server-integration-testsuite Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
apollo-server-koa Publish 2018-11-13 15:58:57 +02:00
apollo-server-lambda Publish 2018-11-13 15:58:57 +02:00
apollo-server-micro Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
apollo-server-plugin-base Publish 2018-11-13 15:58:57 +02:00
apollo-server-testing Publish 2018-11-13 15:58:57 +02:00
apollo-tracing Publish 2018-11-13 15:58:57 +02:00
graphql-extensions Publish 2018-11-13 15:58:57 +02:00