Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { prismaExtendType } from 'nexus-prisma'
export const TaskQueries = prismaExtendType({
type: 'Query',
definition(t) {
t.prismaFields(['task', 'tasks'])
},
})
import { prismaExtendType } from 'nexus-prisma'
export const TaskMutations = prismaExtendType({
type: 'Mutation',
definition(t) {
t.prismaFields([
'createTask',
'updateTask',
'deleteTask',
])
},
})