Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@prisma/binding-argument-transform
Advanced tools
![Build status](https://github.com/prisma/prisma-binding-argument-transform/workflows/CI/badge.svg)
Run yarn add @prisma/binding-argument-transform
or npm i @prisma/binding-argument-transform
to install it in your project.
// import { makeWherePrisma2Compatible, makeOrderByPrisma2Compatible } from '@prisma/binding-argument-transform'
const { makeWherePrisma2Compatible, makeOrderByPrisma2Compatible } = require('@prisma/binding-argument-transform')
const resolvers = {
Query: {
users: (_, { where, orderBy }) {
const prisma2Where = makeWherePrisma2Compatible(where)
const prisma2OrderBy = makeOrderByPrisma2Compatible(orderBy)
return prisma.user.findMany({
where: prisma2Where,
orderBy: prisma2OrderBy,
})
}
}
}
npm start
or yarn start
Runs the project in development/watch mode. Your project will be rebuilt upon changes.
Your library will be rebuilt if you make edits.
npm run build
or yarn build
Bundles the package to the dist
folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ESM).
npm test
or yarn test
Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.
FAQs
![Build status](https://github.com/prisma/prisma-binding-argument-transform/workflows/CI/badge.svg)
The npm package @prisma/binding-argument-transform receives a total of 501 weekly downloads. As such, @prisma/binding-argument-transform popularity was classified as not popular.
We found that @prisma/binding-argument-transform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.