unlight / prisma-nestjs-graphql

Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roadmap / Todo

unlight opened this issue · comments

  • bug: input arrays filters are not saved to model folder
  • Datefilter should be Date | string | DateTimeFilter
  • No possible GraphQLUnionType as input type - graphql/graphql-js/issues/207
  • Config option to choose between RelationFilter and whereinput author?: XOR<UserRelationFilter, UserWhereInput> (related to GraphQLUnionType)
  • Combine zoo of nested/nullable filters
  • Aggregate API / AggregateXArgs
  • Import custom type (for toPropertyType) for TypeScript type
  • Compatibility of types
  • take default value config (wont do)
  • use case - maintain custom decorators - if decorator is not found do not add (maybe user moved class to src and extended it)
  • keep only graphql type in prop type
  • Get rid of parasite words from class names (unchecked, nested, nullable), create configurable mutate filter
  • Add suffix to class name (e.g. output) only if not found
  • Remove duplicated types
  • ignore field generation #8
  • custom scalar resolver MichalLytek/typegraphql-prisma#21 MichalLytek/typegraphql-prisma#43 prisma/prisma#3102
  • validate config create output file pattern should not contain parent modifier
  • automatic generate validators from IsNumber() IsOptional() db.varchar(30) blocked prisma/prisma#6844
  • emit compiled bundle #15
  • type ekof = keyof typeof ERole; // role type
  • allow to hide fields *count if no fields in class mark class as abstract (will not help) #130
  • bigint, json from https://github.com/urigo/graphql-scalars