Repository navigation
Description
#924 adds a bounded, typed incoming-reference lookup to the core write transactions (WriteTransaction and OwnedWriteTransaction). Its mission also exposes it in minigraf-java (MiniGrafWriteTransaction.incomingRefs), because the JVM is the first known consumer (LDBC SNB v2 DEL7). The other bindings don't get it in that mission, so v3.0.0 would ship with uneven binding coverage. Two gaps matter most:
- Android uses the same Kotlin package as JVM from v3.0.0 (
io.github.project_minigraf.minigraf). Kotlin code that callsincomingRefswould compile against the JVM jar but not the Android AAR. - Python is Tier 1, but it would lack an API that a Tier 2 binding has.
Every earlier binding feature (#180, #181, #824, #872) shipped to all bindings, so this issue restores parity before v3.0.0.
Scope
Expose the #924 lookup on the write-transaction object of each remaining binding: Python, Android, Swift, Node, C, wasm/WASI where a write transaction exists, and binding-template. Keep the contract the #924 spec defines for core and minigraf-java:
- typed target (entity UUID), two explicit budgets (links returned, records examined);
- a typed outcome, either complete (links + records examined) or exhausted (which budget, plus records examined), with no partial links and no message parsing needed;
- the same error codes the binding already uses: invalid argument API-017, finished transaction API-018, callback reentry INT-001.
Each binding pins a core v3 revision that contains #924, adds tests with its consumer test, and updates its README. Docs site: add per-binding examples where the #924 docs page shows the JVM one.
BrowserDb has no owned write-transaction handle like the native bindings, so decide here whether it gets the lookup and in what form. Record the decision in this issue rather than leaving it implied.
Depends on
- v3: add a bounded typed incoming-reference lookup in write transactions #924 merged on
v3(core API). - The minigraf-java PR from v3: add a bounded typed incoming-reference lookup in write transactions #924's mission, as the reference implementation for the UniFFI bindings.
Activity
adityamukho commentedon Nov 29, 2026
Decisions (2026-11-29):
BrowserWriteTransaction(db.beginWrite().incomingRefs(target, maxLinks, maxRecords)), not onBrowserDb, so discover-then-write stays in one transaction. Browser WASM is Tier 1 from v3.0.0, and the transaction shares the staged target index with native ones.incoming_refs.API-017/API-018/INT-001; no new error codes. Ranges:0..=min(i64::MAX, usize::MAX)for the UniFFI bindings and C,0..=Number.MAX_SAFE_INTEGERfor Node.js,0..=2^32-1for the browser.{ status: 'complete', links: [{ source, attribute }], recordsExamined }or{ status: 'exhausted', budget: 'links' | 'records', recordsExamined }, typed as a union onstatus.MiniGrafIncomingRefs*read through accessors and freed withminigraf_incoming_refs_free; no JSON.Pull requests: #927 (core, browser), project-minigraf/minigraf-python#23, project-minigraf/minigraf-android#22, project-minigraf/minigraf-swift#23, project-minigraf/minigraf-binding-template#15, project-minigraf/minigraf-node#28, project-minigraf/minigraf-c#20, project-minigraf/minigraf-docs#105. The minigraf-wasm PR follows the core merge.
Merge pull request #927 from project-minigraf/feat/925-browser-incomi…
Merge pull request #23 from project-minigraf/feat/925-incoming-refs
Merge pull request #22 from project-minigraf/feat/925-incoming-refs
Merge pull request #23 from project-minigraf/feat/925-incoming-refs
Merge pull request #15 from project-minigraf/feat/925-incoming-refs
Merge pull request #28 from project-minigraf/feat/925-incoming-refs
Merge pull request #20 from project-minigraf/feat/925-incoming-refs
Merge pull request #27 from project-minigraf/feat/925-incoming-refs
docs: add incoming-reference lookup examples for every binding (proje…
adityamukho commentedon Nov 29, 2026
The incoming-reference lookup of #924 is now in every remaining binding and in the browser transaction. WASI is excluded, as recorded above. Nothing is released; this is on the v3 branches.
b6245cc251ca2b95b6245cc2c6f75d5493bd0d05673477414990c72f308c1af0b6245cc2c6f75d5493bd0d05673477414990c72fe3d78a16b6245cc2c6f75d5493bd0d05673477414990c72f46f53a0fb6245cc2c6f75d5493bd0d05673477414990c72f56a1f6cfb6245cc2c6f75d5493bd0d05673477414990c72f3f5444eab6245cc2c6f75d5493bd0d05673477414990c72ff799e3feb6245cc2c6f75d5493bd0d05673477414990c72f(the WASI package in the PR's CI was built from the same commit)1336a649