Skip to content
# Function: convertModelDrivenMapping()

convertModelDrivenMapping(modelMapping): object

Defined in: packages/core/src/transformers/ModelDrivenJsonMapping.ts:63

Convert a model-driven JSON mapping to the traditional JsonMapping format. This enables backward compatibility with existing PostgresJsonQueryBuilder.

Parameters

modelMapping

ModelDrivenJsonMapping

Returns

object

jsonMapping

jsonMapping: JsonMapping

typeProtection

typeProtection: TypeProtectionConfig

Released under the MIT License.