0.0.1-alpha • Published 4 years ago

prisma-info-parser v0.0.1-alpha

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Prisma GQL npm.io

In the resolver, parse the info argument, to have a representation of the query based on the ast schema.

Install

npm install --save prisma-info-parser

or

yarn add prisma-info-parser

Usage

Map with Prisma Model using directives

directive @table(name: String) on OBJECT
directive @field(name: String) on FIELD_DEFINITION

type User @table(name: "user") {
  firstName: String @field
  lastName: String @computed
  email: String @field(name: "email_adress")
  userActions: Posts @field
}

type UserActions @table(name: "user_actions") {

}

Add arguments

Computed Fields

0.0.1-alpha

4 years ago