Commit graph

7 commits

Author SHA1 Message Date
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
Prosper Otemuyiwa
ca35b9fe1c Docs: Remove all RC references in Apollo Server 2 documentation (#1377)
* Remove rc from getting-started

* Remove rc from migration engine

* Remove RC references from migration 2 dot

* Remove rc references

* Remove RC references and correct spellings

* Remove RC references from Essentials

* Remove all RC references
2018-07-19 12:44:02 -07:00
Evans Hauser
260061301c
docs: add mls and nytimes blogs as case studies 2018-05-09 11:12:21 -07:00
Jesse Rosenberger
6e98ba57ef
docs: Use gql template literal tag in all examples.
While the `gql` tag is not currently _required_, it does make it easier to
implement additional, development-friendly functionality in the future.

For example, it could avoid the need to question whether a string literal is
actually using Schema Definition Language (SDL) and avoid the need to
look for context clues.

By implementing these suggestions now, we can avoid the need to ask
developers to refactor in the future.
2018-04-25 14:00:33 +03:00
Jake Dawkins
4fae3da13e added some detail and fixed grammar (#981) 2018-04-23 22:04:15 +03:00
James Baxley
bdc2a82db8 docs: Best practices (#978)
* clean up some code examples

* add in some best practies
2018-04-23 22:01:54 +03:00
Jesse Rosenberger
081e69faf8
"Why Apollo?" 👉 "Why Apollo Server?" 2018-04-20 19:25:24 +03:00
Renamed from docs/source/why-apollo.md (Browse further)