getMapper (name) {
    const mapper = this.getMapperByName(name)
    if (!mapper) {
      throw utils.err(`${DOMAIN}#getMapper`, name)(404, 'mapper')
    }
    return mapper
  }
Return the mapper registered under the specified name.

@example <caption>Container#getMapper</caption>
// import { Container } from 'js-data';
const JSData = require('js-data');
const { Container } = JSData;
console.log('Using JSData v' + JSData.version.full);

const store = new Container();
// Container#defineMapper returns a direct reference to the newly created
// Mapper.
const UserMapper = store.defineMapper('user');
console.log(UserMapper === store.getMapper('user'));
console.log(UserMapper === store.as('user').getMapper());
store.getMapper('profile'); // throws Error, there is no mapper with name "profile"

@method Container#getMapper
@param {string} name {@link Mapper#name}.
@returns {Mapper}
@since 3.0.0