pipeos-one / chainlens

Fine-grained browser and searcher of Ethereum smart contracts
https://chainlens.pipeos.one
GNU General Public License v3.0
2 stars 2 forks source link

Server - upstream fix for postgresql filter on jsonb arrays #14

Open loredanacirstea opened 4 years ago

loredanacirstea commented 4 years ago

jsonb array filter is not working properly in https://github.com/strongloop/loopback-connector-postgresql.

E.g. finding functions by input type: /pfunction?filter={"where":{"data.gapi.outputs.type":"address"}}

There is a temporary workaround in place now and the filter syntax looks like: /pfunction?filter={"where":{"data.gapi.outputs":{"inq":[{"type":"address"}]}}}. But it depends on a low-level query & limited filter support:

used in:

Ideally, this should be fixed upstream, the PostgreSQL connector.