graphprotocol / graphprotocol/graph-node
Support _in where predicate for columns with array of ids
Open
Nobody has claimed this yet.
area/graphql
enhancement
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Is there support for the _in where-predicate for columns with array of ids.
This is useful for many-to-many relationship. The equivalent in SQL is column && anyarray → boolean.
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 by reading store/postgres/src/relational_queries.rs around lines 876-886, which the issue identifies as the relevant query construction area. Trace how _in predicates are handled for array-valued columns and determine the tests needed to demonstrate support for many-to-many ID arrays; done means the predicate works through the GraphQL query path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, rust
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100