Gaurav
10/30/2020, 4:51 PMType '"PRIVATE"' is not assignable to type 'PrivacyScope'.
Where enum PrivacyScope
has been defined in the exactly same manner in both Prisma and API schema design.
In client, I can see that Prisma uses makeEnun
. What does it do? Could it be the source os this issue? What's the right way to find and fix this issue?
P.S. I can also see that for enum PrivacyScope { PRIVATE }
Prisma goes the makeEnum
way whereas graphql-code-generator generates a corresponding enum
type with key-value like Private = 'PRIVATE'
Gaurav
10/30/2020, 5:22 PMType '"PRIVATE | "PUBLIC"' is not assignable to type 'PrivacyScope'
Type '"PRIVATE"' is not assignable to type 'PrivacyScope'