Skip to content

Commit

Permalink
Update readme for dataSource type
Browse files Browse the repository at this point in the history
Elaborating on how to attach a resolver to a single field on a custom type.  Showing that not only the standard Query, Mutation and Subscription types can be used.
  • Loading branch information
veloware authored and bboure committed May 31, 2020
1 parent aa7ad60 commit b8fe475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ custom:
mappingTemplatesLocation: # defaults to mapping-templates
mappingTemplates:
- dataSource: # data source name
type: # type name in schema (e.g. Query, Mutation, Subscription)
type: # type name in schema (e.g. Query, Mutation, Subscription, or a custom type e.g. User)
field: getUserInfo
# kind: UNIT (default, not required) or PIPELINE (required for pipeline resolvers)
functions: # array of functions if kind === 'PIPELINE'
Expand Down

0 comments on commit b8fe475

Please sign in to comment.