Skip to content

Commit 8827ecf

Browse files
Merge pull request #1625 from luxaritas/patch-2
docs(graphql): Fix missing type
2 parents 50b04c5 + 60dace1 commit 8827ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/resolvers-map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Author {
6363

6464
The `@Field()` decorator accepts an optional type function (e.g., `type => Int`), and optionally an options object.
6565

66-
The type function is required when there's the potential for ambiguity between the TypeScript type system and the GraphQL type system. Specifically: it is **not** required for `string` and `boolean` types; it **is** required for (which must be mapped to either a GraphQL `Int` or `Float`). The type function should simply return the desired GraphQL type (as shown in various examples in these chapters).
66+
The type function is required when there's the potential for ambiguity between the TypeScript type system and the GraphQL type system. Specifically: it is **not** required for `string` and `boolean` types; it **is** required for `number` (which must be mapped to either a GraphQL `Int` or `Float`). The type function should simply return the desired GraphQL type (as shown in various examples in these chapters).
6767

6868
The options object can have any of the following key/value pairs:
6969

0 commit comments

Comments
 (0)