order by a non selectable
field
#932
Replies: 1 comment
-
Then you have to do this before you return your data in the resolve method. Since you implemented this logic on a GraphQL fields resolver directly, you can't make use of that because the, assuming Eloquent models, don't know about it either. But the collection of Eloquent models is where you would need to apply the sorting, hence the logic/data must be present there already. I would also expect you want a second sort criteria than just sort for Not sure I could describe it in way it's easy to understand; maybe I can help more with more details/more code examples. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
I have a type whith a non selectable field
i want to sort the result by that field and use pagination.
without pagination, i can get the result as a collection and order it.
but with pagination i have to return a
Paginator
Thanks
Beta Was this translation helpful? Give feedback.
All reactions