npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@itez-io/nexus-plugin-prisma

v5.19.0

Published

### AWS Lambda packaging

Downloads

321

Readme

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.19.0


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-