prisma-korea / graphql-schema-generator

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

Support DMMF.Field['type'] #41

Open yujonglee opened 2 years ago

yujonglee commented 2 years ago

Although DMMF.Field['type'] is string | DMMF.SchemaEnum | DMMF.OutputType | DMMF.SchemaArg, we always assume that type is string. We need some testcase for DMMF.SchemaEnum | DMMF.OutputType | DMMF.SchemaArg, and support it.

Search if (typeof type !== 'string') (or as string) in this repository for actual code.