如何过滤嵌套对象属性?

时间:2018-06-05 07:00:15

标签: postgresql graphql postgraphql

query { allSubActs {
        nodes {
            subActId
            subActReviewBySubActId {
                        nodes {
                            reviewId
                            reviewByReviewId {
                                    reviewer (equalsTo: "masterShifu")
                                    }
                            }
                        }
            }
    }

postgraphile auto generated functions :
subActReviewBySubActId : return type SubActReviewsConnection!
ActByActId : return type Act

我正在使用graphql,postgraphile和postgresql。 我尝试使用postgraphile-plugin-connection-filter,但没有用, 我试图创建postgresql函数以替换postgraphile函数ReviewByReviewId, 但我无法在上面的查询中使用它,其中" actByActId"是。我不知道为什么......(返回类型相同)。 我想我的问题是如何过滤嵌套对象的属性?

0 个答案:

没有答案
相关问题