-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to omit compound unique from typegraphql types #431
Comments
You need this field in inputs in order to properly find unique records in db via graphql api. |
sorry, my example should have marked the in my case, i want to expose |
to make this more clear, i can hide regular |
@MichalLytek -- here's a clearer example:
this currently generates:
but what i want to generate instead is:
that still has at least one unique field ( for context, |
@MichalLytek see clarification above |
Is your feature request related to a problem? Please describe.
assume you have this model:
there doesn't seem to be a way to hide the generated
id_organizationId
field in typegraphql-generated types (if there is please let me know) :)Describe the solution you'd like
The clearest way I can think of is to make
/// @TypeGraphQL.omit(input: true)
work for@@unique
Describe alternatives you've considered
???
The text was updated successfully, but these errors were encountered: