简体   繁体   中英

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. I'm using Hasura's graphql schema for the query.

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

The operators are as follows.

_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.

Does anyone out there know what each of the following operators in the hasura generated schemas do? 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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