
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@rsbear/gp-schematic
Advanced tools
Generate your GraphQL schema from your Prisma schema.
Maintaining a GraphQL schema is tedious and quite frankly pretty annoying. Generating full CRUD APIs isn't my speed as I feel they significantly muddy the schema. It's pretty clear that Prisma's schema syntax is inspired by GraphQL - why not parse that schema and create a basic GraphQL types next to it? So that's what this is, parse the schema.prisma and create schema.graphql
yarn add --dev @rsbear/gp-schematic
package.json
(please note the input and output flags and manage accordingly) "generate:schema": "node node_modules/@rsbear/gp-schematic/dist/index.js --input=prisma/schema.prisma --output=graphql/schema.graphql"
yarn generate:schema
Use graphql-tools and concat the rest of everything you need.. I'll put up an example later
FAQs
Generate your GraphQL schema from your Prisma schema.
We found that @rsbear/gp-schematic 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.