Skip to content

Enhance store for querying multiple entities #2872

@schmidsi

Description

@schmidsi

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

Currently the host store interface only supports interacting with one entity at a time:

/**
 * Host store interface.
 */
export declare namespace store {
  function get(entity: string, id: string): Entity | null
  function set(entity: string, id: string, data: Entity): void
  function remove(entity: string, id: string): void
}

What is the expected behavior?

The store should expose functions similar to the GraphQL interface like:

let entities = Entity.findAll(where: { blockHash: "0xdeadbeef" });

Or even expose the SQL interface?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions