unlight / prisma-nestjs-graphql

Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
MIT License
512 stars 76 forks source link

Add InputType to Model #128

Open fazomo opened 1 year ago

fazomo commented 1 year ago

schema.prisma

image

expected output

image

is this possible?

Thank you.

sir-script commented 4 months ago

Any News? +1 For this feature, because for an Offline Sync update/push functionality with RxDB I need a flatten easy structure to create/update the model data over GQL (InputType). (not like model-{create}-input, where the relations are nested objects and not primitive types).