refactor schema to match database schema
This commit is contained in:
@@ -28,7 +28,7 @@ export class CategorySchema extends PothosSchema {
|
||||
name: t.exposeString('name', {
|
||||
description: 'The name of the category.',
|
||||
}),
|
||||
subCategory: t.relation('SubCategory', {
|
||||
subCategory: t.relation('subCategory', {
|
||||
description: 'The subcategory of the category.',
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user