something I find super inconsistent about Prisma i...
# orm-help
m
something I find super inconsistent about Prisma is enum naming. if I try to make an enum in datamodel.prisma with a lowercase character it says:
The first character of each value must be an uppercase letter.
. although when you auto-generate a schema.graphql all the enums are lowercase like this:
Copy code
enum DeviceOrderByInput {
  apnsToken_ASC
  apnsToken_DESC
  createdAt_ASC
  createdAt_DESC
  fcmToken_ASC
  fcmToken_DESC
  id_ASC
  id_DESC
}
why the inconsistency and any way to make it consistent?
n
Those are the enums used by the
orderBy
fields when fetching lists and are named after your type's fields. If those values where all uppercase, it would be inconsistent with the respective field names. The enum values you define in your datamodel are kept uppercase in the generated schema.graphql.
👍 1