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
It doesn't appear to be possible to add multiple @TypeGraphQL comments to a single field. I have the need to specify a field as a different type, as well as exclude it from output.
organizationId: ID! in the model type, and organizationId not appears in input types.
Logs
If applicable, add some console logs to help explain your problem.
You can paste the errors with stack trace that were printed when the error occurred.
Environment (please complete the following information):
OS: [e.g. Windows 10 21H1] Mac OSX
Node (e.g. 15.8.0) v18.15.0
typegraphql-prisma version [e.g. 0.11.1] (please check if the bug still exist in newest release)
Describe the Bug
It doesn't appear to be possible to add multiple
@TypeGraphQL
comments to a single field. I have the need to specify a field as a different type, as well as exclude it from output.To Reproduce
Attempt 1:
But this results in an obscure JSON error with a failed generate:
Attempt 2:
But this results in the field type comment being ignored and a comment being inserted into the schema (note that it's not an
ID
type):Expected Behavior
organizationId: ID!
in the model type, andorganizationId
not appears ininput
types.Logs
If applicable, add some console logs to help explain your problem.
You can paste the errors with stack trace that were printed when the error occurred.
Environment (please complete the following information):
typegraphql-prisma
version [e.g. 0.11.1] (please check if the bug still exist in newest release)Additional Context
The text was updated successfully, but these errors were encountered: