Cauen / prisma-generator-pothos-codegen

The fastest way to create a fully customizable CRUD Graphql API from Prisma Schema.
https://www.npmjs.com/package/prisma-generator-pothos-codegen
100 stars 19 forks source link

Parse omit comments from prisma schema #6

Closed quintal-william closed 2 years ago

quintal-william commented 2 years ago

This is the first of two Pull Requests implementing the desired nexus-prisma-like feature set proposed in #4

This PR contains:

/* @type {import('prisma-generator-pothos-codegen').Config} / module.exports = { inputs: { outputFilePath: './src/graphql/generated/inputs.ts', }, crud: { outputDir: './src/graphql/generated/', inputsImporter: 'import * as Inputs from "@graphql/generated/inputs";', }, global: { builderImporter: 'import { builder } from "@graphql/builder";', }, };


- Add linting and formatting to the repository
- Restructure package.json dependencies such that they are installed correctly
- Added MIT license field (because yarn was complaining, may be changed later)

This PR does not do:
- Updated docs on how @Pothos.omit() works
- @Pothos.omit() testing
- Any CRUD related stuff (that will be PR 2)
Cauen commented 2 years ago

@saphewilliam I have read, tested and really appreciated your work here Thank you very much for your contribution, it was a great improvement in the project