-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(TypeComposer): Fixed option name is
projection
for fieldConfig …
…in methods addField, addFields If you add `newField` via `TypeComposer`, you may provide option `projection: { field1: true, field2: true }` to require this fields from source/database. So when you request in query only this `newField`, then `source resolver` will request this 3 fields { newField: true, field1: true, field2: true } from DB. After returned data will be passed to `resolve(source, args, context, info)` method of your `newField` in `source`.
- Loading branch information
Showing
3 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters