Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
graphql-info-transformer
Advanced tools
This is a proof of concept to transform GraphQL's `info` into an object that can be consumed by Prisma's PhotonJS (API schema and DB schema must match). Can be useful when migrating from Prisma v1 to v2 (i.e. from Prisma Binding to PhotonJS).
This is a proof of concept to transform GraphQL's info
into an object that can be consumed by Prisma's PhotonJS (API schema and DB schema must match). Can be useful when migrating from Prisma v1 to v2 (i.e. from Prisma Binding to PhotonJS).
users(_, args, ctx, info) {
return photon.users.findMany({
select: infoToPhotonSelect(info)
})
})
Based on this article and some GraphQL-related projects.
npm install graphql-info-transformer
yarn add graphql-info-transformer
In the example
folder:
yarn prisma2 dev
yarn seed
Run the project with yarn start
and open the Playground to try the following query:
query {
users {
id
name
email
posts(where: { title: { contains: "prisma" } }, orderBy: { title: asc }) {
id
content
title
}
}
}
It should show only 2 of the 3 posts in the seed.
FAQs
This is a proof of concept to transform GraphQL's `info` into an object that can be consumed by Prisma's PhotonJS (API schema and DB schema must match). Can be useful when migrating from Prisma v1 to v2 (i.e. from Prisma Binding to PhotonJS).
We found that graphql-info-transformer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.