I have this:
type Client @guard {
id: ID!
name: String!
phone: String
orders: [Order!]! @hasMany # How do i make it possible to order this array via client side?
}
extend type Query {
client (
id: ID! @eq
): Client @find
}
I would like to do something like that:
{
client (id: 10) {
orders (orderBy: ....) {
}
}
}
I already tried to add @orderBy
on orders
field but it doesn't seems to work, is it possible to do in lighthouse-php?