-
Notifications
You must be signed in to change notification settings - Fork 1
Type-graphql issue #5
Comments
Do you need to enable |
@babichjacob Already done, along with "experimentalDecorators" being set to true. It's doing it for Entities and Resolvers |
Can you provide a repository? |
@babichjacob Sorry, had to create one: https://github.com/MirrorBytes/phorm-kit-vercel |
I'll have to leave this issue open for a few days because school has to be a higher priority right now. I'm sorry. |
No need to be sorry! |
So, I moved the graphql implementation to the However, if I ditch graphql-helix and use apollo-server-micro, everything works as expected. I believe this is an issue with graphql-helix not liking type-graphql and/or metadata reflection. I'll update the repo in a little bit incase anyone else has this issue. |
Wait, I lied. This has nothing to do with graphql-helix. It's to do with sveltekit and type reflection, just tried to move it out of the |
I opened an issue in the SvelteKit repo as I think it pertains to that as opposed to this library: sveltejs/kit#798 |
Relevant upstream issue / comment: sveltejs/kit#1327 (comment) |
Type reflection seems to be buggy. I'm getting random errors like this:
"Unable to infer GraphQL type from TypeScript reflection system. You need to provide explicit type for 'XXXX' of 'XXXX' class."
This is happening with
reflect-metadata
being imported in the endpoint and the schema file. Importing it into each individual class file doesn't seem to work either. Any ideas?The text was updated successfully, but these errors were encountered: