src/types/Category/inputs.ts
import { inputObjectType } from 'nexus';
export const CategoryCreateInput = inputObjectType({
name: 'CategoryCreateInput',
definition(t) {
t.nonNull.string('name');
t.nonNull.field('type', { type: 'TransactionType' });
},
});
export const CategoryUpdateInput = inputObjectType({
name: 'CategoryUpdateInput',
definition(t) {
t.nonNull.string('name');
t.nonNull.field('type', { type: 'TransactionType' });
},
});