-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
coreRelated to codegen core/cliRelated to codegen core/clipluginsstage/1-reproductionA reproduction existsA reproduction exists
Description
Describe the bug
When you return a number as an ID type in a resolver, it causes a typescript error. However, graphql.js does also accept returning numbers which are then automatically cast to strings.
See https://graphql.github.io/graphql-spec/draft/#sec-ID
TL;DR:
ID as operation argument/return type from resolver -> string or number
ID as operation selection set value -> string
garrettg123, Traviskn, tslater, jgonera, charliecooper45 and 3 moretslater
Metadata
Metadata
Assignees
Labels
coreRelated to codegen core/cliRelated to codegen core/clipluginsstage/1-reproductionA reproduction existsA reproduction exists