You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: undefined is not a promise
at Promise (<anonymous>)
at resolveType (/home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:227:24)
at inferTypeOrThrow (/home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:389:12)
at resolveRegisteredOrInferedType (/home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:607:12)
at compileFieldConfig$$1 (/home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:625:24)
at /home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:658:39
at Array.forEach (<anonymous>)
at getAllFields (/home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:653:25)
at /home/capaj/git_projects/tests/type-gql/node_modules/typegql/lib/index.js:666:39
at Array.forEach (<anonymous>)
Which is fine-you need to specify the type explicitly using {type: Number}, but would it be possible to maybe at least print out a name of the field and the name of the class?
It's quite hard to find where the error is coming from if I have just added many fields
The text was updated successfully, but these errors were encountered:
Do you use compileSchema function of typegql to compile schema that is using this type? It should perform validation and do exactly what you're asking here.
Giving good error messages is really important for library like this. I'd appreciate if you'd describe steps to reproduce getting your error.
when I specify a field decorator such as this:
I get this error:
Which is fine-you need to specify the type explicitly using
{type: Number}
, but would it be possible to maybe at least print out a name of the field and the name of the class?It's quite hard to find where the error is coming from if I have just added many fields
The text was updated successfully, but these errors were encountered: