src/lib/modules/connection/repository.js
/**
   * Check if a connection exists by name
   * @param {String} name
   */
Check if a connection exists by name
@param {String} name
Check if a connection exists by name @param { String } name
existsByName(name) {
    var _this = this;
    return _this.list()
      .then((connections) => {
        return new Promise((resolve) => {
          var existingConnection = _.findWhere(connections, {
            name: name
          });
          return resolve(existingConnection ? true : false);
        });
      });
  }
existsByName ( name ) { var _this = this ; return _this . list ( ) . then ( ( connections ) => { return new Promise ( ( resolve ) => { var existingConnection = _ . findWhere ( connections , { name : name } ) ; return resolve ( existingConnection ? true : false ) ; } ) ; } ) ; }
Check if a connection exists by name
 @param {String} name
Check if a connection exists by name @param { String } name