'How to use @search directive with orderby

I using scout with meilisearch but search directive not working with orderBy

input OrderByClause {
column: String!
order: DESC
}
type Query {
users(search: String @search orderBy: [OrderByClause!] @orderby): [User!]! @paginate

Query
users(first:10, search: "test", orderBy: [ {column: "id", order: DESC}])

but working in controller $users = User::search('test')->orderBy('id','desc')->paginate()



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source