captbaritone / grats

Implementation-First GraphQL for TypeScript

Home Page:https://grats.capt.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pothos types ID arguments as number | string. Do we need to do the same?

captbaritone opened this issue · comments

Will graphql-js pass a number through to your resolver if you define the arg type as ID? I would expect it to coerce to string before passing to the user resolver.

Looked into this, and GraphQL-js seems to do the coercion for us.