fetchai / ledger-subquery

This is the Fetch Ledger SubQuery project, an indexer for the Fetch network.
MIT License
2 stars 10 forks source link

Improve event filtering support #186

Closed bryanchriswhite closed 1 year ago

bryanchriswhite commented 1 year ago

Background

The event entity schema currently represents a 1:1 mapping to its corresponding cosmjs data structure. As such, the attributes field is a JSON (jsonb) array, a data structure which interoperates with the JSON operators supported by Postgres quite poorly in any case where one wishes to query, conditionally, based on values contained within the elements of said array.

Acceptance Criteria

The API supports filtering on keys and values of the event attributes.