We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/working-with-scalar-lists-arrays#setting-the-value-of-a-scalar-list
Using a scalar list in postgres leads to generated type requiring a set field, should support direct setting as outlined in linked doc.
set
Example model with output types
model Task { ... categories String[] ... }
@InputType() export class TaskCreateInput { ... @Field(() => TaskCreatecategoriesInput, {nullable:true}) categories?: TaskCreatecategoriesInput; ... } @InputType() export class TaskCreatecategoriesInput { @Field(() => [String], {nullable:false}) set!: Array<string>; }
This leads to requiring inputs always use the set: [...] form, and prevents being able to set the value directly, or use unset: true.
set: [...]
unset: true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/working-with-scalar-lists-arrays#setting-the-value-of-a-scalar-list
Using a scalar list in postgres leads to generated type requiring a
set
field, should support direct setting as outlined in linked doc.Example model with output types
This leads to requiring inputs always use the
set: [...]
form, and prevents being able to set the value directly, or useunset: true
.The text was updated successfully, but these errors were encountered: