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.

userMappings(mappings: JSONObject): void

ArgumentTypeDescription
mappings
JSONObject
User mappings.

Usage #

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