import { schema } from 'nexus' export const MappedServiceSettings = schema.objectType({ name: 'MappedServiceSetting', definition(t) { t.model.id() t.model.lastImport() t.model.lastExport() t.model.importEnabled() t.model.exportEnabled() t.model.importStatus() t.model.exportStatus() t.model.mappedServiceId() t.model.mappedService() t.model.projects() }, }) export const MappedServiceSettingsQueries = schema.extendType({ type: 'Query', definition(t) { t.crud.mappedServiceSettings({ filtering: true, ordering: true }) // t.crud.mappedServiceSettingses({ filtering: true, ordering: true }) // Not working for now }, }) export const MappedServiceSettingsMutation = schema.extendType({ type: 'Mutation', definition: (t) => { t.crud.deleteOneMappedServiceSetting({ alias: 'deleteMappedServiceSettings' }) t.crud.updateOneMappedServiceSetting({ alias: 'updateMappedServiceSettings' }) t.crud.createOneMappedServiceSetting({ alias: 'createMappedServiceSettings' }) }, })