Skip to main content

Function: pathRefs()

function pathRefs(options?): ValueSerializer<object, PathRefJson>;

References nodes of the tree by their path from the root, checking the ids of the models along it: { "$mobxKeystone": "pathRef", "v": { "path": ["cards", 2], "ids": [null, "c1"] } }. It reaches any node, including tree arrays and plain objects.

Parameters​

ParameterTypeDescription
options?ReferenceSerializerOptionsOptions.

Returns​

ValueSerializer<object, PathRefJson>

The reference serializer.