chore(docs): Remove references to nexus framework (#528)

Since version 0.20 the nexus framework is not supported anymore. The docs still reference the nexus framework in the docs.
This commit is contained in:
Valentin Palkovic 2020-10-20 17:11:57 +02:00 committed by GitHub
parent c68a94c108
commit e65f6ef989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 10 deletions

View File

@ -11,7 +11,7 @@ npm add -D @prisma/cli
## Usage
1. Import `nexusSchemaPrisma` from `nexus-plugin-prisma`
1. Import `nexusPrisma` from `nexus-plugin-prisma`
1. Create and configure it if needed (usually not)
1. Pass into `Nexus.makeSchema` `plugins` array
@ -22,13 +22,13 @@ You can find runnable examples in the [repo examples folder](https://github.com/
**Example**
```ts
import { nexusSchemaPrisma } from 'nexus-plugin-prisma/schema'
import { nexusPrisma } from 'nexus-plugin-prisma'
import { makeSchema } from '@nexus/schema'
import * as types from './types'
const schema = makeSchema({
types,
plugins: [nexusSchemaPrisma()],
plugins: [nexusPrisma()],
})
```
@ -488,15 +488,16 @@ use(
#### Using a custom instance of the Prisma Client
```ts
import { use } from 'nexus'
import { prisma } from 'nexus-plugin-prisma'
import { nexusPrisma } from 'nexus-plugin-prisma'
import { makeSchema } from '@nexus/schema'
import { PrismaClient } from 'nexus-plugin-prisma/client'
use(
prisma({
client: { instance: new PrismaClient() },
})
)
const schema = makeSchema({
types,
plugins: [nexusPrisma({
client: { instance: new PrismaClient()
})],
})
```
## Recipes