import { schema } from 'nexus' export const MappedService = schema.objectType({ name: 'MappedService', definition(t) { t.model.id() t.model.friendlyName() t.model.mappedServiceSettings() t.model.mappings() t.model.projects() }, }) export const MappedServiceQueries = schema.extendType({ type: 'Query', definition(t) { t.crud.mappedService() t.crud.mappedServices({ filtering: true, ordering: true }) }, }) export const MappedServiceMutation = schema.extendType({ type: 'Mutation', definition: (t) => { t.crud.deleteOneMappedService({ alias: 'deleteMappedService' }) t.crud.updateOneMappedService({ alias: 'updateMappedService' }) t.crud.createOneMappedService({ alias: 'createMappedService' }) }, })