Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GIN index scoping #426

Open
xelnagapi opened this issue Jun 19, 2024 · 1 comment
Open

Add support for GIN index scoping #426

xelnagapi opened this issue Jun 19, 2024 · 1 comment

Comments

@xelnagapi
Copy link

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
Copy link
Collaborator

maxh commented Jun 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants