loop-payments/prisma-lint

Add support for GIN index scoping

Opened this issue · 1 comments

I tried adding a GIN index for JsonbPathOps, but this resulted in a parsing error

  @@index([info(ops: JsonbPathOps)], type: Gin)

https://www.prisma.io/docs/orm/prisma-schema/data-model/indexes

This resulted in the following error:

Error: Failed to parse attribute, first value is not a string
    at extractPrimaryFieldNameFromRelationListAttribute ([...]/node_modules/prisma-lint/dist/rules/require-field-index.js:202:11)
maxh commented

For now we could no-op in these scenarios to avoid blocking. Is there a way you can work around it at the moment?