简体   繁体   English

Hasura Graphql 查询运算符的神秘定义

[英]Mystery definitions for Hasura Graphql query Operators

I'm using a complex derived graphql query in which I want to get all entries between a min and max value.我正在使用复杂的派生 graphql 查询,我想在其中获取最小值和最大值之间的所有条目。 I'm using Hasura's graphql schema for the query.我正在使用 Hasura 的 graphql 模式进行查询。

Heroku's Hasura defines a set of operators for the AggregateObject on their docs page https://docs.hasura.io/1.0/graphql/manual/api-reference/graphql-api/query.html#whereexp for aggregation Heroku 的 Hasura 在其文档页面https://docs.hasura.io/1.0/graphql/manual/api-reference/graphql-api/query.html#whereexp上为 AggregateObject 定义了一组运算符用于聚合

The operators are as follows.运营商如下。

_eq _neq _in _nin _gt _lt _gte _lte _eq _neq _in _nin _gt _lt _gte _lte

However, the Hasura docs don't define what these operators each do, and there are no definitions in the schema analyzer I have available.但是,Hasura 文档没有定义这些运算符各自的作用,并且在我可用的模式分析器中也没有定义。

Does anyone out there know what each of the following operators in the hasura generated schemas do?有没有人知道 hasura 生成的模式中的以下每个运算符的作用? Do any of them do min and max?他们中的任何一个都做最小值和最大值吗?

Equals, not equals, in, not in, greater than, less than, greater than or equal.等于、不等于、在、不在、大于、小于、大于或等于。 The docs have some examples: https://docs.hasura.io/1.0/graphql/manual/queries/query-filters.html文档有一些例子: https://docs.hasura.io/1.0/graphql/manual/queries/query-filters.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM