0.0.6 • Published 1 year ago

prisma-generator-graphql-schema v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Generates a GraphQL Schema file from a Prisma Schema

This is a work in progress, and only implements what I've needed so far. PR's welcome

Supported:

  • ✅ model
  • ✅ enum
  • ❌ BigInt
  • ✅ Boolean
  • ❌ Bytes
  • ✅ DateTime as String
  • ✅ Decimal as Float
  • ✅ Float
  • ✅ Int
  • ❌ Json
  • ✅ String

Install npm i prisma-generator-graphql-schema

Usage

generator graphqlSchema {
  provider = "prisma-generator-graphql-schema"
  output   = "../src/schema.graphql"    // default: ./src/generated/schema.graphql
  optionalRelationships = "true"        // default: false
  exportedNameSuffix = "Suffix"         // default: ""
  exportedNamePrefix = "Prefix"         // default: ""
}
0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago