graphprotocol / graphprotocol/graph-node
Enhance store for querying multiple entities
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the host store interface shown in the issue and compare its single-entity get, set, and remove operations with the Entity.findAll GraphQL example. Clarify whether multi-entity querying or SQL exposure is intended; done requires an agreed query interface and defined behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, rust, sql
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100