Add a new record to the graph. If a record with the same identifier already exists, it will be silently overwritten.
Optionaloptions: Partial<{ overwrite: boolean }>
Options for the add record method (e.g. overwrite)
Executes all recorded references, i.e. for every reference declaration the target record receives a back-reference via its toAttribute.
Find a record within the graph based on the predicate function. Returns the first match with arbitrary ordering.
Function that should evaluate to true for the record that should be returned.
the first record that matches the predicate, or undefined if no record matches the predicate
Get a record by its local ID or globally unique and registered PID
local identifier or global PID of the record to retrieve
the record when it exists in this graph, or undefined it not
Get a flat list of all record in this graph
Returns the contents of this graph in a plain format, to be used with JSON.stringify
Returns the content of this graph as a string, mainly useful for logging and debugging.
Represents a graph of FDO records, where each node is a record and each edge is a reference from one record to another.