Explainable — Documentation by YARD 0.9.37 (original) (raw)

Module: Mongo::Collection::View::Explainable

Overview

Defines explain related behavior for collection view.

Constant Summarycollapse

QUERY_PLANNER =

The query planner verbosity constant.

'queryPlanner'.freeze

EXECUTION_STATS =

The execution stats verbosity constant.

'executionStats'.freeze

ALL_PLANS_EXECUTION =

The all plans execution verbosity constant.

'allPlansExecution'.freeze

Instance Method Summarycollapse

Instance Method Details

#explain(**opts) ⇒ Hash

Get the query plan for the query.

59 60 61 # File 'lib/mongo/collection/view/explainable.rb', line 59 def explain(**opts) self.class.new(collection, selector, options.merge(explain_options(**opts))).first end