Skip to content

getTypeMapping

Overview

Resolve the mapping for a field's typeSerializer, falling back to the serializer's default entry when typeModel is unknown.

Signature

getTypeMapping(mapping, field)

Parameters

NameTypeRequiredDescription
mappingobjectyesThe mapping object keyed by typeSerializer and typeModel.
fieldFieldInfoyesField info containing the typeSerializer/typeModel.

Returns

T

The matched mapping or the default entry for the serializer.

Source

client/lib/utils/getTypeMapping.js:15

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2