TerminusDB 11.0.3: The Patch Endpoint

Open inAnthropic

TerminusDB 11.0.3 adds the patch endpoint, the counterpart to diff that applies a structural JSON diff to documents in a branch. It was released on 16 March 2023.

Patch endpoint

What it does

POST /api/patch/<path> takes a diff — the same structure produced by the diff endpoint — and applies it to the documents of a branch in a single commit. Together, diff and patch are the primitives behind merge workflows: diff two commits, keep the changes you want, apply them where you need them.

Why it matters

Traditional diff and patch enabled the software industry to merge changes across branches and resolve conflicts. This worked well for code, TerminusDB enables the same capability for knowledge graphs at scale and for the communication of information across the commercial and business-oriented world.

Read more: Patch endpoint reference · JSON diff and patch · Diff and patch operations

Pinned organizations

A new environment variable pins an organization: all data products of that organization or team are kept in memory for faster access.

Fixes

  • Full schema replace no longer fails early when an ID is missing
  • String filters now work on all stringy types, not only strings
  • Document delete returns 204 and non-GET responses are no longer chunked
  • Fixed inversion naming for non-standard GraphQL class names

Upgrade

Example: Bash
docker pull terminusdb/terminusdb-server:v11.0.3

No data migration is needed. Docker install guide · Full changelog on GitHub


Previous: TerminusDB 11.0.1: Local Clone and Pre-Commit Hooks · Next: TerminusDB 11.0.4: The Document History API · TerminusDB 11.0 changelog · Release index

Was this helpful?