prisma-nestjs-graphql 15.1.0 → 15.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +3 -23
  2. package/bin.js +2 -0
  3. package/index.js +0 -0
  4. package/package.json +2 -2
package/README.md CHANGED
@@ -21,6 +21,8 @@ npm install --save-dev prisma-nestjs-graphql
21
21
  ```prisma
22
22
  generator nestgraphql {
23
23
  provider = "node node_modules/prisma-nestjs-graphql"
24
+ // for yarn monorepos
25
+ // provider = "prisma-nestjs-graphql"
24
26
  output = "../src/@generated/prisma-nestjs-graphql"
25
27
  }
26
28
  ```
@@ -556,29 +558,7 @@ Similar to `@FieldType()` but refer to TypeScript property (actually field too).
556
558
  To override TypeScript type in specific classes, you can use glob pattern `match: string | string[]`
557
559
  see [outmatch](https://github.com/axtgr/outmatch#usage) for details.
558
560
 
559
- Named import example:
560
-
561
- ```prisma
562
- model Transfer {
563
- id String @id
564
- /// @PropertyType({ name: 'Prisma.Decimal', from: '@prisma/client', namedImport: true, input: true })
565
- money Decimal
566
- }
567
- ```
568
-
569
- May generate following:
570
-
571
- ```ts
572
- import { Prisma } from '@prisma/client';
573
-
574
- @ObjectType()
575
- export class TransferCreateInput {
576
- @Field(() => GraphQLDecimal)
577
- money!: Prisma.Decimal;
578
- }
579
- ```
580
-
581
- Another example:
561
+ Example:
582
562
 
583
563
  ```
584
564
  generator nestgraphql {
package/bin.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('./index.js');
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "15.1.0",
3
+ "version": "15.1.1",
4
4
  "license": "MIT",
5
5
  "description": "Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module",
6
6
  "main": "index.js",
7
- "bin": "index.js",
7
+ "bin": "bin.js",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/unlight/nestjs-graphql-prisma.git"