Replies: 2 comments 5 replies
-
On screenshot you see that the type of Do you use babel/aws lambda or something? Non-standard TS Node setup requires speciall effort for decorators and metadata. |
Beta Was this translation helpful? Give feedback.
-
I know this is off topic for this package, but when I watch this video explaining what ts-node can do, it still creates a dist folder with compiled js (my project package.json has ts-node installed already - but I think you might be suggesting that there is a way to use it so that the project doesn't separately compile js in a dist folder - and that might allow me to run my type generator script without the errors that are currently stopping me from interacting with graphql). Is there something you're thinking that can work without creating this folder? Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to follow Ben Awad's lireddit tutorial.
At 6.49 he shows how to add arguments to a resolver query, with types that replace default values (in this case, replacing a default Float value, with Int).
The query is:
When I try to generate types from this resolver, I get 3 errors, being:
GraphQLDocumentError: Unknown type "Int". [Note: Int is imported from type-graphql]
Unknown argument "cursor" on field "Query.posts".
Unknown argument "limit" on field "Query.posts".
I'm trying to find things I can do to try and solve this problem.
When I use the playground to inspect the documents, I don't get any arguments feedback.
This SO post includes a screenshot that shows the feedback I can get from the graphql playground. It doesn't include limit or cursor arguments at all.
Beta Was this translation helpful? Give feedback.
All reactions