lib/mongo/collection/view/builder/find_command.rb
# Get the specification for an explain command that wraps the find
# command.
#
# @example Get the explain spec.
#   builder.explain_specification
#
# @return [ Hash ] The specification.
#
# @since 2.2.0
Get the specification for an explain command that wraps the find
command.
Get the specification for an explain command that wraps the find command .
def explain_specification
            {
              selector: {
                explain: find_command,
              },
              db_name: database.name,
              read: read,
              session: @session,
              explain: options[:explain],
            }
          end
def explain_specification { selector : { explain : find_command , } , db_name : database . name , read : read , session : @session , explain : options [ :explain ] , } end
Get the specification for an explain command that wraps the find
command.
Get the specification for an explain command that wraps the find command .
# We should always have options{:explain] set if we are explaining. # The explain field is not sent to the server, it will be # processed in the operation layer.
None
 Hash 
example
Get the explain spec. builder.explain_specification
Get the explain spec . builder . explain_specification
since
None