phong bat
This commit is contained in:
@@ -22,10 +22,18 @@ export class ServiceAndCategorySchema extends PothosSchema {
|
||||
return this.builder.prismaObject('ServiceAndCategory', {
|
||||
description: 'A service and category in the system.',
|
||||
fields: (t) => ({
|
||||
serviceId: t.exposeID('serviceId'),
|
||||
service: t.relation('service'),
|
||||
subCategory: t.relation('SubCategory'),
|
||||
subCategoryId: t.exposeID('subCategoryId'),
|
||||
serviceId: t.exposeID('serviceId', {
|
||||
description: 'The ID of the service.',
|
||||
}),
|
||||
service: t.relation('service', {
|
||||
description: 'The service for the service and category.',
|
||||
}),
|
||||
subCategory: t.relation('SubCategory', {
|
||||
description: 'The sub category for the service and category.',
|
||||
}),
|
||||
subCategoryId: t.exposeID('subCategoryId', {
|
||||
description: 'The ID of the sub category.',
|
||||
}),
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user