Skip to content

Commit b8fe475

Browse files
velowarebboure
authored andcommitted
Update readme for dataSource type
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.
1 parent aa7ad60 commit b8fe475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ custom:
124124
mappingTemplatesLocation: # defaults to mapping-templates
125125
mappingTemplates:
126126
- dataSource: # data source name
127-
type: # type name in schema (e.g. Query, Mutation, Subscription)
127+
type: # type name in schema (e.g. Query, Mutation, Subscription, or a custom type e.g. User)
128128
field: getUserInfo
129129
# kind: UNIT (default, not required) or PIPELINE (required for pipeline resolvers)
130130
functions: # array of functions if kind === 'PIPELINE'

0 commit comments

Comments
 (0)