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