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

Ability to order documents using an array value #6598

Open
spacedawwwg opened this issue May 7, 2024 · 0 comments
Open

Ability to order documents using an array value #6598

spacedawwwg opened this issue May 7, 2024 · 0 comments

Comments

@spacedawwwg
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Unable to order documents using an array value (reference)

Describe the solution you'd like
orderings to be able to use array indexes in their field path value, e.g.

orderings: [
  { 
    title: 'Array item value',
    name: 'my-array-based-value',
    by: [
      {
        field: 'myArrayOfReferences.0.myFieldOnTheFirstItem',
        direction: 'desc',
      }
    ]
  }
]

Describe alternatives you've considered
Tried to look under the hood at how previews handle this but couldn't quite figure it out.

@bjoerge bjoerge added the Feature label May 21, 2024 — with Linear
@linear linear bot added the SDX label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants