feat: enhance GraphQL schemas and service logic
- Added support for creating relation inputs in PrismaCrudGenerator for object types. - Implemented unauthorized access checks in OrderSchema to ensure user authentication. - Added logic to prevent duplicate service registrations for users in OrderSchema. - Updated PayosService to change order status from IN_PROGRESS to WAITING_QUIZ. - Introduced a new mutation for creating multiple personal milestones in PersonalMilestoneSchema with necessary validation. - Enhanced QuizSchema to update schedule status to WAITING_INTERVIEW upon quiz attempt creation. These changes improve the robustness of the GraphQL API by adding necessary validations, enhancing user experience, and ensuring proper state management across various schemas.
This commit is contained in:
@@ -308,6 +308,9 @@ export class PrismaCrudGenerator<Types extends SchemaTypes> {
|
||||
case 'enum':
|
||||
type = this.getEnum(field.type)
|
||||
break
|
||||
case 'object':
|
||||
type = this.getCreateRelationInput(modelName, field.name)
|
||||
break
|
||||
case 'unsupported':
|
||||
break
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user