apollo-server/docs/source
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
..
api Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
deployment fixed typos in docs (#1817) 2018-10-15 10:09:25 +03:00
essentials Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
features Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00
images centralized “Get Started” Image in the doc (#1883) 2018-10-26 20:15:13 +03:00
schemas Fix type for a mutation example (#1635) 2018-09-17 16:44:35 -07:00
servers Docs improvements (#692) 2017-12-11 23:11:11 -08:00
_redirects Add Netlify _redirects file specifically for test-utils → testing. 2018-11-15 13:12:32 +02:00
getting-started.md Fix "To be successful" line 2018-09-01 09:25:30 +02:00
index.md docs: Add sentence punctuation to 2.0 callout. 2018-06-26 17:33:58 +03:00
migration-engine.md Docs: Remove all RC references in Apollo Server 2 documentation (#1377) 2018-07-19 12:44:02 -07:00
migration-two-dot.md Docs: fix the example for "Using an Existing Schema" (#1761) 2018-10-10 16:57:18 +03:00
requests.md Setup prettier (#724) 2018-01-08 15:08:01 -08:00
whats-new.md Add exception on note regarding the removal of Upload scalar (#1658) 2018-09-17 16:42:34 -07:00
why-apollo-server.md Consistently use parent, rather than root, as first resolver argument. 2018-11-16 20:37:26 +02:00