lib/adapter.js
function(connection, collection, object, cb) {
      utils.removeCircularReferences(object);
      if (cb) {
        cb(object);
      }
      return object;
    }
function(connection, collection, object, cb) {
      utils.removeCircularReferences(object);
      if (cb) {
        cb(object);
      }
      return object;
    }
function ( connection , collection , object , cb ) { utils . removeCircularReferences ( object ) ; if ( cb ) { cb ( object ) ; } return object ; }
Remove Circular References

Replaces circular references with `id` when one is available, otherwise it replaces the object
with string '[Circular]'

@param {Object} connection
@param {Object} collection
@param {Object} object
@param {Object} cb
Remove Circular References