Metadata of domains/accounts/triggers etc could be a large key-value storage.
Currently there are queries to extract a single key-value entry by key (e.g. FindDomainMetadata { id, key }). Another way to retrieve metadata is to query an entity entirely (e.g. via FindDomains by an id) and access the whole metadata object.
A specific use-case when it may not be desirable: in Explorer, we display entities while not having domain-specific knowledge, e.g. when metadata is expected to be small, or large, or when it needs some special way of displaying. We need to display a key-value storage universally in an efficient way, e.g.
with pagination applied to keys (imagine there are thousands of them)
limiting the depth of JSON values retrieval
fetching more data dynamically on request
Ideas
Add ability to iterate over metadata key-value entries (with pagination and sorting)
Context
Metadata of domains/accounts/triggers etc could be a large key-value storage.
Currently there are queries to extract a single key-value entry by key (e.g.
FindDomainMetadata { id, key }
). Another way to retrieve metadata is to query an entity entirely (e.g. viaFindDomains
by an id) and access the whole metadata object.A specific use-case when it may not be desirable: in Explorer, we display entities while not having domain-specific knowledge, e.g. when metadata is expected to be small, or large, or when it needs some special way of displaying. We need to display a key-value storage universally in an efficient way, e.g.
Ideas
jq
-like?)