graphprotocol / graphprotocol/graph-node

Add support for spatial fields & queries

Open
#3,288 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Original thread

Users may want to save spatial data (longitude, latitude) in their subgraphs, and then query entities on the basis of proximity or containment. This is not natively supported by Postgres, and is not an option in graph-node.

An optional Postgis extension could allow spatial types and queries to be added to subgraphs.

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 with the linked forum thread and review how graph-node currently handles PostgreSQL-backed subgraph data. Investigate whether an optional PostGIS extension can provide spatial types and proximity or containment queries, and define support for both before implementation begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.