lib/mongo/collection/view/builder/aggregation.rb
# Get the specification to pass to the aggregation operation.
#
# @example Get the specification.
#   builder.specification
#
# @return [ Hash ] The specification.
#
# @since 2.2.0
Get the specification to pass to the aggregation operation.
Get the specification to pass to the aggregation operation .
def specification
            spec = {
              selector: aggregation_command,
              db_name: database.name,
              read: view.read_preference,
              session: @options[:session],
              collation: @options[:collation],
            }
            if write?
              spec.update(write_concern: write_concern)
            end
            spec
          end
def specification spec = { selector : aggregation_command , db_name : database . name , read : view . read_preference , session : @options [ :session ] , collation : @options [ :collation ] , } if write? spec . update ( write_concern : write_concern ) end spec end
Get the specification to pass to the aggregation operation.
Get the specification to pass to the aggregation operation .
None
 Hash 
example
Get the specification. builder.specification
Get the specification . builder . specification
since
None