New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rsbear/gp-schematic

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsbear/gp-schematic

Generate your GraphQL schema from your Prisma schema.

  • 0.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

GraphQL Prisma Schematic

Generate your GraphQL schema from your Prisma schema.

Why?

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

Install as a dev dep.
yarn add --dev @rsbear/gp-schematic
Add this script to your 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"
Run it.
yarn generate:schema
What about the schema being incomplete?

Use graphql-tools and concat the rest of everything you need.. I'll put up an example later

FAQs

Package last updated on 06 Jun 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc