Orderby Relationship Meta-Field count?

framework

#1

Is it possible to order a query by it’s included _votesMeta-Field count?
Or do i have to create a count-field on Link that i update in case of running a mutation
that creates a vote on Link? Seems to be a possible solution, but is possible overhead
as the _votesMeta-Field is already available… Like:

{
  allLinks( orderBy: _votesMeta_count_ASC ) {
    id
    url
    description
    _votesMeta {
      count
    }
  }
}

thx, in advance!


#2

This is currently not possible and needs to be done in the client instead.


#3

Thanks for the response… thought so… Solved it for me by introducing a count-object, which holds the value of the meta-field-count.