import { schema } from 'nexus' export const PaymentAccount = schema.objectType({ name: 'PaymentAccount', definition(t) { t.model.id() t.model.paySafePaymentToken() t.model.EFTAccountNickname() t.model.userId() t.model.addressOnFile() t.model.user() }, }) export const PaymentAccountQueries = schema.extendType({ type: 'Query', definition(t) { t.crud.paymentAccount() t.crud.paymentAccounts({ filtering: true, ordering: true }) }, }) export const PaymentAccountMutation = schema.extendType({ type: 'Mutation', definition: (t) => { t.crud.deleteOnePaymentAccount({ alias: 'deletePaymentAccount' }) t.crud.updateOnePaymentAccount({ alias: 'updatePaymentAccount' }) t.crud.createOnePaymentAccount({ alias: 'createPaymentAccount' }) }, })