JSON Diff and Patch
Document and database differencing and patching
Part of: Version Control
6 pages
Git-like version control for JSON data
TerminusDB gives JSON documents Git-like version control — structural diff, patch, branches, and full commit history. Store schemaless JSON with automatic deduplication. Tutorial with curl examples.
Diff an Object or a Database Branch with the JS Client
A guide to show how to use the JS Client to diff an object or a database branch.
JSON Diff and Patch with TerminusDB
Compute structural diffs between JSON documents and apply them as patches with the TerminusDB JSON Diff and Patch API. Works standalone against any two JSON objects, or against TerminusDB's immutable history to compare two commits or layers. Includes a no-auth quickstart, HTTP endpoint reference, curl examples, JavaScript and Python client examples, and the full set of patch operation types.
Patch Endpoint — Apply Structural Patches to Documents
Apply JSON diff patches to documents in a TerminusDB branch. Patch a single document with a before/after comparison, or patch multiple documents in a resource by ID.
Knowledge Graph Diff
A knowledge graph diff shows which facts changed between two versions. Triple vs document diffs, and how to diff and patch a graph in TerminusDB.
TerminusDB 11.0.3: The Patch Endpoint
TerminusDB 11.0.3 lets you apply a JSON diff to documents with the patch endpoint, so structural edits land in one commit. Also: a memory-pinning option.