How to use the nexus-prisma.prismaExtendType function in nexus-prisma

To help you get started, we’ve selected a few nexus-prisma examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tonyfromundefined / serverless-graphql-workshop / cheatsheet / server / src / resolvers / task / Query.ts View on Github external
import { prismaExtendType } from 'nexus-prisma'

export const TaskQueries = prismaExtendType({
  type: 'Query',
  definition(t) {
    t.prismaFields(['task', 'tasks'])
  },
})
github tonyfromundefined / serverless-graphql-workshop / cheatsheet / server / src / resolvers / task / Mutation.ts View on Github external
import { prismaExtendType } from 'nexus-prisma'

export const TaskMutations = prismaExtendType({
  type: 'Mutation',
  definition(t) {
    t.prismaFields([
      'createTask',
      'updateTask',
      'deleteTask',
    ])
  },
})

nexus-prisma

<p align="center"> <img src="https://i.imgur.com/8qvElTM.png" width="300" align="center" /> <h1 align="center"><a style="color:black;" href="https://graphql-nexus.github.io/nexus-prisma">nexus-prisma</a></h1> </p>

MIT
Latest version published 7 months ago

Package Health Score

70 / 100
Full package analysis