【发布时间】:2022-03-07 20:50:44
【问题描述】:
我有这个:
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
}
我想做这样的事情:
{
client (id: 10) {
orders (orderBy: ....) {
}
}
}
我已经尝试在orders 字段上添加@orderBy,但它似乎不起作用,是否可以在 lighthouse-php 中进行?
【问题讨论】: