update user mutation
This commit is contained in:
@@ -75,6 +75,14 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
|
||||
}));
|
||||
}
|
||||
|
||||
findUniqueArgs<Name extends string & keyof Types['PrismaTypes']>(
|
||||
modelName: Name,
|
||||
) {
|
||||
return this.builder.args((t) => ({
|
||||
where: t.field({ type: this.getWhereUnique(modelName), required: true }),
|
||||
}));
|
||||
}
|
||||
|
||||
getWhere<Name extends string & keyof Types['PrismaTypes']>(
|
||||
modelName: Name,
|
||||
without?: string[],
|
||||
|
||||
Reference in New Issue
Block a user