Is there any way to make queries on a jsonb field in some table in Postgres that are basically equitable to the Mongodb query operators (listed here https://docs.mongodb.org/manual/reference/operator/query-comparison/)
I would like to be able to store some json objects in a postgres table for example:
{"power": 200},
{"power": 400},
{"power": 0},
{"power": 146297},
If I do the current method of
SELECT * FROM mytable where json_field ->> 'power' < '2';
I get retured both the row for power 0 and power 146297...
Is there some documentation somewhere that specifies how to do
gt, gte, lt, lte, eq, not equal, in array, not in array
jsonbsupported from 9.4, it must be a typo (but please update your question to be sure).