lib/operations/collection_ops.js
function optionsOp(coll, opts, callback) {
  coll.s.db.listCollections({ name: coll.s.name }, opts).toArray((err, collections) => {
    if (err) return handleCallback(callback, err);
    if (collections.length === 0) {
      return handleCallback(
        callback,
        MongoError.create({ message: `collection ${coll.s.namespace} not found`, driver: true })
      );
    }

    handleCallback(callback, err, collections[0].options || null);
  });
}
function optionsOp(coll, opts, callback) {
  coll.s.db.listCollections({ name: coll.s.name }, opts).toArray((err, collections) => {
    if (err) return handleCallback(callback, err);
    if (collections.length === 0) {
      return handleCallback(
        callback,
        MongoError.create({ message: `collection ${coll.s.namespace} not found`, driver: true })
      );
    }

    handleCallback(callback, err, collections[0].options || null);
  });
}
function optionsOp ( coll , opts , callback ) { coll . s . db . listCollections ( { name : coll . s . name } , opts ) . toArray ( ( err , collections ) => { if ( err ) return handleCallback ( callback , err ) ; if ( collections . length === 0 ) { return handleCallback ( callback , MongoError . create ( { message : ` ${ coll . s . namespace } ` , driver : true } ) ) ; } handleCallback ( callback , err , collections [ 0 ] . options || null ) ; } ) ; }
Return the options of the collection.

@method
@param {Collection} a Collection instance.
@param {Object} [options] Optional settings. See Collection.prototype.options for a list of options.
@param {Collection~resultCallback} [callback] The results callback
Return the options of the collection .