Socket
Socket
Sign inDemoInstall

prisma-generate-schema

Package Overview
Dependencies
Maintainers
1
Versions
474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-generate-schema

Transform prisma datamodel SDL into graphql-js SDL


Version published
Weekly downloads
8.1K
increased by41.85%
Maintainers
1
Weekly downloads
 
Created
Source

Blackbox Tests

These tests load a datamodel, compute the CRUD schema, and then compare it with a ground-truth CRUD schema. The ground-truth CRUD schema should be queried from an existing prisma endpoint. This can be done using the tool provided in the scripts folder.

Test Cases

airbnb Airbnb Schema from Prisma Team defaultValue Tests default values. enum Tests if enums are generated correctly, and also if unused enums are not generated. meshRelation Tests a mesh of relations. financial Financial Schema from Prisma Team oneSidedConnection A schema that has all cases of one-sided connections relationNames Tests if relation names are parsed correctly. relations A schema that has several random cases for relations scalars Tests scalar types in various configurations. selfReferencing Tests self-referencing relations. simple A basic schema twoSidedConnections A schema that has all cases of two-sided connections withAndWithoutId Type model with types with ID and without ID

FAQs

Package last updated on 05 Sep 2018

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