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

Embedded many-to-many relations do not suggest valid values in references #1075

Closed
janpio opened this issue Mar 11, 2022 · 0 comments · Fixed by #1091
Closed

Embedded many-to-many relations do not suggest valid values in references #1075

janpio opened this issue Mar 11, 2022 · 0 comments · Fixed by #1091
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. topic: autocompletion LSP text document completion topic: mongodb
Milestone

Comments

@janpio
Copy link
Contributor

janpio commented Mar 11, 2022

image

Instead it suggests random strings from the file.

Schema to reproduce:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["mongoDb"]
}

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}


model Bar {
    id Int @id @map("_id")
    foo_ids Int[]
    foo Foo[] @relation(fields: [foo_ids], references: [])
}

model Foo {
    id Int @id @map("_id")
    bar_ids Int[]
    bar Bar[] @relation(fields: [bar_ids], references: [id])

}
@janpio janpio added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. topic: autocompletion LSP text document completion domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. topic: mongodb labels Mar 11, 2022
@janpio janpio changed the title MongoDB does not suggest valid values in references Does not suggest valid values in references Mar 11, 2022
@janpio janpio changed the title Does not suggest valid values in references Embedded many-to-many relations do not suggest valid values in references Mar 11, 2022
@Jolg42 Jolg42 added bug/2-confirmed Bug has been reproduced and confirmed. process/candidate Candidate for next Milestone. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Mar 15, 2022
@floelhoeffel floelhoeffel removed the process/candidate Candidate for next Milestone. label Mar 16, 2022
@Jolg42 Jolg42 added this to the 3.12.0 milestone Mar 16, 2022
Jolg42 added a commit that referenced this issue Mar 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Closes #1075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. topic: autocompletion LSP text document completion topic: mongodb
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants