import { schema } from 'nexus' export const ThirdPartyVersion = schema.objectType({ name: 'ThirdPartyVersion', definition(t) { t.model.id() t.model.friendlyName() t.model.versionNumber() }, }) export const ThirdPartyVersionQueries = schema.extendType({ type: 'Query', definition(t) { t.crud.thirdPartyVersion() t.crud.thirdPartyVersions({ filtering: true, ordering: true }) }, }) export const ThirdPartyVersionMutation = schema.extendType({ type: 'Mutation', definition: (t) => { t.crud.deleteOneThirdPartyVersion({ alias: 'deleteThirdPartyVersion' }) t.crud.updateOneThirdPartyVersion({ alias: 'updateThirdPartyVersion' }) t.crud.createOneThirdPartyVersion({ alias: 'createThirdPartyVersion' }) }, })