Skip to main content

Function: idRefs()

function idRefs(options?): ValueSerializer<AnyModel, IdRefJson>;

References models of the tree that have an id by their type and id: { "$mobxKeystone": "idRef", "v": { "type": "app/Card", "id": "c1" } }. Ids are read and resolved as getModelRefId and resolveId do, and the type must match.

Parameters​

ParameterTypeDescription
options?ReferenceSerializerOptionsOptions.

Returns​

ValueSerializer<AnyModel, IdRefJson>

The reference serializer.