在 GraphQL 布尔表达式查询中使用 OR 而不是 AND

Use OR instead of AND in GraphQL boolean expression query

我正在使用图形 QL 查询填充 table:

graphql 查询如下所示:

const DESSERT_QUERY = gql`
    query DESSERT_QUERY($where: dessert_bool_exp) {
      dessert(where: $where) {
        name 
        calories
        fat
        carbs
      }
    }
  `;

查询变量:

{"where": 
    {
    "name": {
      "_in": ["xyz"]
    },
    "calories": {
      "_eq": 1
    },
     "fat": {
      "_eq": 606
    },
    "carbs": {
      "_eq": 1
    },
    } 
}

如何实现 OR 查询。

感谢任何指导。谢谢

The correct GraphQL Query Variables is : 

 {"where": 
        {
        "name": {
          "_in": ["xyz"]
        },
        "calories": {
          "_eq": 1
        },
        "_or": [{"fat": {
          "_eq": 606
        }},
         {"carbs": {
          "_eq": 1
        }}] 
    }
}