canonical
canonical(
state):string
Defined in: libs/content-revision/src/lib/canonical.ts:88
The canonical form. Deterministic for a given logical state and independent of the order the caller happened to collect attributes or roles in.
An attribute that is absent and one that is present with an empty value encode differently: the first contributes nothing, the second contributes a field of length zero. That distinction is deliberate — they are different states and must not share a revision.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.