OpenQuizz
Une application de gestion des contenus pédagogiques
DeleteMany Class Reference
Inheritance diagram for DeleteMany:
Collaboration diagram for DeleteMany:

Public Member Functions

def __init__ (self, filter, collation=None, hint=None)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 

Detailed Description

Represents a delete_many operation.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filter,
  collation = None,
  hint = None 
)
Create a DeleteMany instance.

For use with :meth:`~pymongo.collection.Collection.bulk_write`.

:Parameters:
  - `filter`: A query that matches the documents to delete.
  - `collation` (optional): An instance of
    :class:`~pymongo.collation.Collation`. This option is only
    supported on MongoDB 3.4 and above.
  - `hint` (optional): An index to use to support the query
    predicate specified either by its string name, or in the same
    format as passed to
    :meth:`~pymongo.collection.Collection.create_index` (e.g.
    ``[('field', ASCENDING)]``). This option is only supported on
    MongoDB 4.4 and above.

.. versionchanged:: 3.11
   Added the ``hint`` option.
.. versionchanged:: 3.5
   Added the `collation` option.

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __ne__()

def __ne__ (   self,
  other 
)

◆ __repr__()

def __repr__ (   self)

The documentation for this class was generated from the following file: