lib/memory-engine.js
function find(query, options, callback) {
    if (typeof options === 'function') {
      callback = options
      options = {}
    }

    self.emit('find', query, options)
    if (callback !== undefined) {
      findByQuery(query, options, function(error, data) {
        if (error) return callback(error)
        self.emit('received', data)
        callback(null, data)
      })
    } else {
      return findByQuery(query, options)
    }
  }
function find(query, options, callback) {
    if (typeof options === 'function') {
      callback = options
      options = {}
    }

    self.emit('find', query, options)
    if (callback !== undefined) {
      findByQuery(query, options, function(error, data) {
        if (error) return callback(error)
        self.emit('received', data)
        callback(null, data)
      })
    } else {
      return findByQuery(query, options)
    }
  }
function find ( query , options , callback ) { if ( typeof options === 'function' ) { callback = options options = { } } self . emit ( 'find' , query , options ) if ( callback !== undefined ) { findByQuery ( query , options , function ( error , data ) { if ( error ) return callback ( error ) self . emit ( 'received' , data ) callback ( null , data ) } ) } else { return findByQuery ( query , options ) } }
Performs a find on the data. Emits a 'find' event.

@param {Object} query to search by
@param {Object} options
@param {Function} callback
@api public
Performs a find on the data . Emits a find event .