implement subcategory

This commit is contained in:
2024-10-14 16:53:55 +07:00
parent 6c04f52ddd
commit 76ff5d28ac
4 changed files with 78 additions and 11 deletions

View File

@@ -24,7 +24,8 @@ export class ServiceAndCategorySchema extends PothosSchema {
serviceId: t.exposeID('serviceId'),
categoryId: t.exposeID('categoryId'),
service: t.relation('service'),
category: t.relation('category'),
subCategory: t.relation('SubCategory'),
subCategoryId: t.exposeID('subCategoryId'),
}),
});
}