Method: Mongoid::Contextual::Mongo#explain

Defined in:
lib/mongoid/contextual/mongo.rb

#explainHash

Run an explain on the criteria.

Examples:

Explain the criteria.

Band.where(name: "Depeche Mode").explain

Returns:

  • (Hash)

    The explain result.

Since:

  • 3.0.0



160
161
162
# File 'lib/mongoid/contextual/mongo.rb', line 160

def explain
  view.explain
end