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

Autocomplete all array items in a compound index #676

Closed
2color opened this issue Jan 11, 2021 · 0 comments · Fixed by #744
Closed

Autocomplete all array items in a compound index #676

2color opened this issue Jan 11, 2021 · 0 comments · Fixed by #744
Assignees
Milestone

Comments

@2color
Copy link

2color commented Jan 11, 2021

Problem

Given the following model in the Prisma schema:

model SavedArticle {
  id       String  @id
  content  Json
  feed     Feed?   @relation(fields: [feedId], references: [id])
  feedId   String?
  author   User?   @relation(fields: [authorId], references: [id])
  authorId String?
  url String

  @@index([a])
}

The autocompletion of the compound index should be available when the user types every array item.

It works on the first:
Screen Shot 2021-01-11 at 18 03 19

But not on the second.
Screen Shot 2021-01-11 at 18 05 20

Suggested solution

Suggest model fields for the second and following items of an index array.

Alternatives

Additional context

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

Successfully merging a pull request may close this issue.

2 participants