Jupyter notebook 从blaze查询到GraphQL查询的转换

Jupyter notebook 从blaze查询到GraphQL查询的转换,jupyter-notebook,graphql,blaze,Jupyter Notebook,Graphql,Blaze,我有一个数据消费者,它是一个Jupyter笔记本。有没有办法将blaze中编写的查询转换为graphQL查询 例如,在blaze中,我们有: accounts[accounts.balance < 0].name accounts[accounts.balance

我有一个数据消费者,它是一个Jupyter笔记本。有没有办法将blaze中编写的查询转换为graphQL查询

例如,在blaze中,我们有:

accounts[accounts.balance < 0].name
accounts[accounts.balance<0]。名称
在GraphQL中,我们可能会看到:

{
accounts(balance<0)
{
name
}
}
{

accounts(balanceGraphQL不公开任何内置过滤功能。它可以以参数的形式手动实现。所以,根据您的需要,您可以定义如下查询字段:

type Query {
    accounts(balanceBelow: Int!): [Account!]
}
或:

但如果自定义查询过滤和聚合在您的域中很常见,您可能会发现使用GraphQL很麻烦

type Constraint {
    fieldName: String!
    operator: OperatorEnum!
    value: String!
}
type Query {
    accounts(where: Constraint): [Account!]
}