async updateMapping(request) {
    request.addDeprecation(
      "2.1.0",
      'This action has been deprecated since Kuzzle version 2.1.0. This feature might be removed in a future major version. To update a collection, use this API action instead: "collection:update".',
    );

    const { index, collection } = request.getIndexAndCollection();
    const mappings = request.getBody();

    const updated = await this.ask(
      "core:storage:public:mappings:update",
      index,
      collection,
      mappings,
    );

    return this._filterMappingResponse(updated);
  }
Updates the mapping of the collection

@param {Request} request
@returns {Promise.<Object>}