Module Mongo::Collection::View::Explainable
In: lib/mongo/collection/view/explainable.rb

Defines explain related behavior for collection view.

@since 2.0.0

Methods

explain  

Constants

QUERY_PLANNER = 'queryPlanner'.freeze   The query planner verbosity constant.

@since 2.2.0

EXECUTION_STATS = 'executionStats'.freeze   The execution stats verbosity constant.

@since 2.2.0

ALL_PLANS_EXECUTION = 'allPlansExecution'.freeze   The all plans execution verbosity constant.

@since 2.2.0

Public Instance methods

Get the explain plan for the query.

@example Get the explain plan for the query.

  view.explain

@return [ Hash ] A single document with the explain plan.

@since 2.0.0

[Validate]