fix orderby and improve createResume

This commit is contained in:
2024-10-15 21:15:20 +07:00
parent 7d7765c70f
commit b8e8448658
2 changed files with 11 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
required: false,
}),
orderBy: t.field({
type: this.getOrderBy(modelName),
type: [this.getOrderBy(modelName)],
required: false,
}),
cursor: t.field({