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

MongoDB M:N relations get referential actions auto completion suggestions, then does not validate #1060

Closed
Tracked by #8788
janpio opened this issue Feb 15, 2022 · 1 comment
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: autocompletion topic: mongodb
Milestone

Comments

@janpio
Copy link
Member

janpio commented Feb 15, 2022

Auto completion here:

model Book {
  id String @id @default(auto()) @map("_id") @db.ObjectId

  author_ids String[] @db.ObjectId
  authors    Author[] @relation(fields: [author_ids], references: id)
}

model Author {
  id String @id @default(auto()) @map("_id") @db.ObjectId

  book_ids String[] @db.ObjectId
  books    Book[]   @relation(fields: [book_ids], references: id, |)
}

image
image

@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 team/schema Issue for team Schema. topic: mongodb labels Feb 15, 2022
@janpio janpio added this to the 3.10.0 milestone Feb 15, 2022
@Jolg42 Jolg42 added bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Feb 15, 2022
@janpio janpio modified the milestones: 3.10.0, 3.11.0 Feb 23, 2022
@Jolg42 Jolg42 closed this as completed in c464b8f Mar 11, 2022
@janpio
Copy link
Member Author

janpio commented Mar 11, 2022

Now fixed in v31.0.712:
image

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. kind/bug A reported bug. team/schema Issue for team Schema. topic: autocompletion topic: mongodb
Development

No branches or pull requests

2 participants