@search directive does not work with @orderBy but it does with @paginate #2597
Unanswered
keithmifsud
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋
I have queries similar to this one:
With the
@orderBy
fields in place, I get the following error:Found arg builder arguments that do not work with @search.
Removing this:
works as expected (without the orderBy obviously).
The
@paginate
does not produce errors and the pagination seem to work as expected.I'm a bit confused as the docs say that the
@search
only works with@eq
and soft delete https://lighthouse-php.com/master/api-reference/directives.html#searchI've browsed for solutions to no avail. Can someone please guide me through the solution?
Is there something I can build so that I can use @ordeyBy, @paginate and @search without needed a custom Query resolver?
Is it just easier to build a query resolver for each query?
Other ideas?
Thanks a lot for your time 💙
Beta Was this translation helpful? Give feedback.
All reactions