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
| Parameter | Type | Description |
|---|---|---|
options? | ReferenceSerializerOptions | Options. |
Returns
ValueSerializer<AnyModel, IdRefJson>
The reference serializer.