@@ -361,6 +361,28 @@ export class BigIntFilter {
361361
362362It will affect all inputs and outputs types (including models).
363363
364+ #### ` customImport `  
365+ 
366+ Allow to declare custom import statements. (Only works with emitSingle = true)
367+ 
368+ ``` sh 
369+ generator nestgraphql {
370+     decorate_{key}_from = " module specifier" 
371+     decorate_{key}_name = " import name" 
372+     decorate_{key}_defaultImport = " default import name" |  true 
373+     decorate_{key}_namespaceImport = " namespace import name" 
374+     decorate_{key}_namedImport = " import name" |  true 
375+ }
376+ ``` 
377+ 
378+ Where ` {key} `  any identifier to group values (written in [ flatten] ( https://github.com/hughsk/flat )  style)
379+ 
380+ -  ` decorate_{key}_from `  - module specifier to import from (e.g ` class-validator ` )
381+ -  ` decorate_{key}_name `  - import name or name with namespace
382+ -  ` decorate_{key}_defaultImport `  - import as default
383+ -  ` decorate_{key}_namespaceImport `  - use this name as import namespace
384+ -  ` decorate_{key}_namedImport `  - named import (without namespace)
385+ 
364386## Documentation and field options  
365387
366388Comments with triple slash will projected to typescript code comments
@@ -736,27 +758,27 @@ import { generate } from 'prisma-nestjs-graphql/generate';
736758
737759## Similar Projects 
738760
739- - https://github.com/jasonraimondi/prisma-generator-nestjs-graphql 
740- - https://github.com/omar-dulaimi/prisma-class-validator-generator 
741- - https://github.com/kimjbstar/prisma-class-generator 
742- - https://github.com/odroe/nest-gql-mix 
743- - https://github.com/rfermann/nestjs-prisma-graphql-generator 
744- - https://github.com/madscience/graphql-codegen-nestjs 
745- - https://github.com/wSedlacek/prisma-generators/tree/master/libs/nestjs 
746- - https://github.com/EndyKaufman/typegraphql-prisma-nestjs 
747- - https://github.com/MichalLytek/typegraphql-prisma 
748- - https://github.com/mk668a/nestjs-prisma-graphql-crud-gen 
761+ - < https://github.com/jasonraimondi/prisma-generator-nestjs-graphql>  
762+ - < https://github.com/omar-dulaimi/prisma-class-validator-generator>  
763+ - < https://github.com/kimjbstar/prisma-class-generator>  
764+ - < https://github.com/odroe/nest-gql-mix>  
765+ - < https://github.com/rfermann/nestjs-prisma-graphql-generator>  
766+ - < https://github.com/madscience/graphql-codegen-nestjs>  
767+ - < https://github.com/wSedlacek/prisma-generators/tree/master/libs/nestjs>  
768+ - < https://github.com/EndyKaufman/typegraphql-prisma-nestjs>  
769+ - < https://github.com/MichalLytek/typegraphql-prisma>  
770+ - < https://github.com/mk668a/nestjs-prisma-graphql-crud-gen>  
749771
750772## Resources 
751773
752- - Todo - https://github.com/unlight/prisma-nestjs-graphql/issues/2 
753- - https://github.com/prisma/prisma/blob/main/packages/client/src/generation/TSClient/TSClient.ts 
754- - https://ts-ast-viewer.com/ 
755- - https://github.com/unlight/nestjs-graphql-prisma-realworld-example-app 
756- - https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/data-model 
757- - JSON type for the code first approach - https://github.com/nestjs/graphql/issues/111#issuecomment-631452899 
758- - https://github.com/paljs/prisma-tools/tree/master/packages/plugins 
759- - https://github.com/wasp-lang/wasp 
774+ - Todo - < https://github.com/unlight/prisma-nestjs-graphql/issues/2>  
775+ - < https://github.com/prisma/prisma/blob/main/packages/client/src/generation/TSClient/TSClient.ts>  
776+ - < https://ts-ast-viewer.com/>  
777+ - < https://github.com/unlight/nestjs-graphql-prisma-realworld-example-app>  
778+ - < https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/data-model>  
779+ - JSON type for the code first approach - < https://github.com/nestjs/graphql/issues/111#issuecomment-631452899>  
780+ - < https://github.com/paljs/prisma-tools/tree/master/packages/plugins>  
781+ - < https://github.com/wasp-lang/wasp>  
760782
761783## TODO 
762784
0 commit comments