prisma-korea / graphql-schema-generator

Generate GraphQL Schema from Prisma schema.
MIT License
32 stars 12 forks source link

Conditional type conversion based on other fields. #20

Closed yujonglee closed 2 years ago

yujonglee commented 2 years ago

Currently, rules are applied by function which get a field as input. However, there are cases that need other fields for conversion.

For example, Convert field to ID if model has no @id and the field is @unique.

Maybe we need to re-introduce simple global store, which I implemented and deleted.