graphprotocol / graphprotocol/graph-node

[Feature] Extend load_related to direct Child[].

Open
#4,484 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/runtime area/subgraphs enhancement
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Description
Currently, the `load_related()` host function only works with `derivedFrom` fields. We could use the same function for loading childs in a more explicit way instead of looping and loading each one by one.
Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.
The PR #4434 must be merged before this is a valid request.
Some information to help us out
  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #4434, which the issue identifies as a prerequisite, then trace the load_related host function and its current derivedFrom-only behavior. Confirm the intended direct Child[] loading semantics and consider the work complete when load_related supports that explicit child-loading path without per-child looping.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.