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
Argument | Type | Description |
---|---|---|
mappings | JSONObject | User mappings. |
Usage #
app.import.userMappings({
properties: {
fieldA: { type: 'keyword' },
fieldB: { type: 'integer' }
}
})
Edit this page on Github(opens new window)