Core
Framework v2.x
2

userMappings() #

Available since 2.14.0

Loads user mappings into the app.

This method is idempotent. If mappings are defined multiple times, only their last definition will be retained.

This method can only be used before the application is started.

Copied to clipboard!
userMappings(mappings: JSONObject): void

Argument Type Description
mappings
JSONObject
User mappings.

Usage #

Copied to clipboard!
app.import.userMappings({
  properties: {
    fieldA: { type: 'keyword' },
    fieldB: { type: 'integer' }
  }
})