support column operators _ceq in graphql api
https://docs.hasura.io/1.0/graphql/manual/api-reference/graphql-api/query.html#columnexp
(Via @jrhicks on discord)
@coco98 They are not supported in the graphql interface yet.
@0x777 Why is this hard?
I'd like to upvote this feature. Currently I have to use sequelize and APIs to accomodate this all-to-common need.
select * from table where column1 > column2;
... wish there was a way to do this in graphql where clause.
Another example where ceq would be useful in query - https://stackoverflow.com/questions/61674263/compare-two-fields-in-graphql-hasura
Was closed accidentally
Can someone explain what the _ceq etc actually do? I can't really find it documented anywhere.
@tintin10q they are column operator. They are used to compare fields instead of values.
... where: { field1: { _ceq: field2 }}
@tintin10q check https://github.com/hasura/graphql-engine/releases/tag/v2.0.0
There is a section about column operator.
This issue will now be reviewed and tracked as part of the Hasura V3 roadmap.