libs/apollo.js
function(client){
        var define_connection_options = lodash.clone(this._connection);

        define_connection_options.policies = {
            loadBalancing: new SingleNodePolicy()
        };

        //define_connection_options.hosts = define_connection_options.contactPoints;

        this._client = client;
        this._define_connection = new cql.Client(define_connection_options);

        /*this._client.on('log',function(level, message){
            console.log(message);
        });*/
        //Reset connections on all models
        for(var i in this._models){
            this._models[i]._properties.cql = this._client;
            this._models[i]._properties.define_connection = this._define_connection;
        }
    }
function(client){
        var define_connection_options = lodash.clone(this._connection);

        define_connection_options.policies = {
            loadBalancing: new SingleNodePolicy()
        };

        //define_connection_options.hosts = define_connection_options.contactPoints;

        this._client = client;
        this._define_connection = new cql.Client(define_connection_options);

        /*this._client.on('log',function(level, message){
            console.log(message);
        });*/
        //Reset connections on all models
        for(var i in this._models){
            this._models[i]._properties.cql = this._client;
            this._models[i]._properties.define_connection = this._define_connection;
        }
    }
function ( client ) { var define_connection_options = lodash . clone ( this . _connection ) ; define_connection_options . policies = { loadBalancing : new SingleNodePolicy ( ) } ; //define_connection_options.hosts = define_connection_options.contactPoints; this . _client = client ; this . _define_connection = new cql . Client ( define_connection_options ) ; /*this._client.on('log',function(level, message){
            console.log(message);
        });*/ //Reset connections on all models for ( var i in this . _models ) { this . _models [ i ] . _properties . cql = this . _client ; this . _models [ i ] . _properties . define_connection = this . _define_connection ; } }
Set internal clients
@param {object} client Node driver client
@private
Set internal clients