Examples
Working examples for every query shape OriginChain supports. Each example is its own page with a clear explanation of what it does, the schema and seed data it needs, side-by-side cURL / Python / TypeScript / Go, the response shape, and common mistakes to avoid.
63 examples across 7 sections. Pick a section to see the index of examples in it.
SELECT, WHERE filters, JOINs, GROUP BY + aggregates, writes via /sql, plan inspection. Plus a few roadmap features so you know what's coming.
Single insert, insert with metadata, top-k by each metric, fast vs high_recall mode, filtered top-k. Working request and response bodies.
Index a doc, boolean AND, exact phrase, ranked BM25, and multi-field weighted merge. Side-by-side cURL and Python.
Forward and reverse neighbors, depth-bounded BFS, reachability, weighted shortest path, all simple paths, PageRank. One example per page.
Simple count, schemas hint, show_plan, NL JOIN, cache-hit replay, error recovery. The full /ask round-trip with rows + cache metadata.
Recipes that save a row, its vector embedding, its full-text index, and its graph edge in one coordinated write. The differentiator example.
Every HTTP error code you can hit, with the request that triggers it and the canonical response body. Includes addon-required, rate-limit, and conflict cases.
Looking for the per-shape reference instead of recipes? See SQL, vector, full-text, graph, and natural language. For schema design, see Schemas.