Method: Mongo::Operation::Specifiable#array_filters

Defined in:
lib/mongo/operation/shared/specifiable.rb

#array_filters(connection) ⇒ Hash | nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The array filters.

Parameters:

  • connection (Server::Connection)

    The connection that the operation will be executed on.

Returns:

  • (Hash | nil)

    The array filters.

Since:

  • 2.5.2



539
540
541
542
# File 'lib/mongo/operation/shared/specifiable.rb', line 539

def array_filters(connection)
  sel = selector(connection)
  sel[Operation::ARRAY_FILTERS] if sel
end