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

feat: for relationMode="prisma", for @relation: add a warning if there is no index on the field(s) #1296

Closed
Jolg42 opened this issue Nov 21, 2022 · 1 comment
Assignees
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: linting topic: prisma-fmt
Milestone

Comments

@Jolg42
Copy link
Member

Jolg42 commented Nov 21, 2022

See https://www.notion.so/prismaio/Indexes-what-can-we-do-to-help-users-when-relationMode-prisma-1b910c36db784352867dc0d079e0e49f

  • (Option 3.1, 3.2)
  • ⚠️ For now, we skip new validation warnings when provider = "mongodb"

Related to prisma/prisma#11441

@Jolg42
Copy link
Member Author

Jolg42 commented Nov 25, 2022

The warning is done, we'll test it and might slightly tweak it.

See prisma/prisma#16440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: linting topic: prisma-fmt
Projects
None yet
Development

No branches or pull requests

2 participants