From 5a0e8483ccd1821a09858695ff52029874cf26dd Mon Sep 17 00:00:00 2001 From: VikR0001 Date: Wed, 17 Apr 2019 10:35:15 -0700 Subject: [PATCH] To assist in on-boarding new users. (#2385) * To assist in on-boarding new users. * Update data.md --- docs/source/essentials/data.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/essentials/data.md b/docs/source/essentials/data.md index c2e59eb75f3..683ef01d6b7 100644 --- a/docs/source/essentials/data.md +++ b/docs/source/essentials/data.md @@ -44,6 +44,8 @@ const resolvers = { }; ``` +With the resolver map above, the query, `{ author { books } }`, will call the `Query.author` resolver first and pass its result to `Author.books`. The query result will contain the return value of `Author.books` nested under `data.author.books`. + Note that you don't have to put all of your resolvers in one object. Refer to the ["modularizing the schema"](/docs/graphql-tools/generate-schema.html#modularizing) section to learn how to combine multiple resolver maps into one.

Resolver type signature