Module: Mongo::Collection::View::Explainable
- Included in:
- Mongo::Collection::View, Aggregation::Behavior
- Defined in:
- lib/mongo/collection/view/explainable.rb
Overview
Defines explain related behavior for collection view.
Constant Summary collapse
- QUERY_PLANNER =
The query planner verbosity constant.
'queryPlanner'- EXECUTION_STATS =
The execution stats verbosity constant.
'executionStats'- ALL_PLANS_EXECUTION =
The all plans execution verbosity constant.
'allPlansExecution'
Instance Method Summary collapse
-
#explain(**opts) ⇒ Hash
Get the query plan for the query.
Instance Method Details
#explain(**opts) ⇒ Hash
Get the query plan for the query.
54 55 56 |
# File 'lib/mongo/collection/view/explainable.rb', line 54 def explain(**opts) self.class.new(collection, selector, .merge((**opts))).first end |