5.10.2 • Published 2 months ago

@itez-io/nexus-plugin-prisma v5.10.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

NOTE: this plugin is now following the same package version as the Prisma framework it is linked/validated against. Will make things easier to track 👍

This plugin has been upgraded to support Prisma 4.0+. Latest version of prisma supported: Prisma 5.10.2


Note: A replacement for this library is under development and available in early preview. More details in #1039. Since the Prisma team is no longer keeping this library up to date with new Prisma versions, we have forked it.

This plugin integrates Prisma into Nexus. It gives you an API you to project fields from models defined in your Prisma schema into your GraphQL API. It also gives you an API to build GraphQL root fields that allow your API clients to query and mutate data.

You can find the documentation on the Nexus website.

Note2: This package is a fork from morgothulhu's. Thank you for your support pre-prisma 4.0.

Usage notes

AWS Lambda packaging

Make sure to include @prisma/internals in your AWS Lambda packaged node_modules folder, in addition to the @prisma/client package.

To mitigate overall package size issues, remove all libquery_engine-debian-openssl-1.1.x.so.node files under node_modules/@prisma as they are not leveraged by AWS Lambda.

Installation

npm install @itez-io/nexus-plugin-prisma
# OR
yarn add @itez-io/nexus-plugin-prisma

Package management

Build, test

build

yarn
yarn build

test

yarn test

If tests need snapshot updates, run yarn test:run:rebaseSnapshots

Dependencies versioning

update all packages

yarn update:all

Windows pre-requisites

Install SQLite3

(follow instructions from here)

Interactive test run

Windows 32 (as an example)

.\node_modules\.bin\jest --forceExit --verbose=true --useStderr=true --silent=false -t "supports nested query with one id field" --watch

.\node_modules\.bin\jest --forceExit --verbose=true --useStderr=true --silent=false --watch ./tests/app.test.ts

validate sqlite install

[System.Environment]::SetEnvironmentVariable("DEBUG", "*")
cls ; .\node_modules\.bin\jest --forceExit --verbose --useStderr -t "supports custom resolver for t.crud" custom-
5.10.2

2 months ago

5.9.1

3 months ago

5.9.0

3 months ago

5.8.1

4 months ago

5.8.0

4 months ago

5.7.1

5 months ago

5.7.0

5 months ago

5.6.0

6 months ago

5.5.2

6 months ago

5.4.2

7 months ago

5.4.1

7 months ago

5.3.1

7 months ago

5.3.0

8 months ago

5.2.0

9 months ago

5.1.1

9 months ago

5.1.0

9 months ago

5.0.0

10 months ago

4.16.2

10 months ago

4.16.1

10 months ago

4.16.0

10 months ago

0.43.14

10 months ago