Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Classe « Cursor »

Méthode pymongo.cursor.Cursor.max

Signature de la méthode max

def max(self, spec: '_Sort') -> 'Cursor[_DocumentType]' 

Description

help(Cursor.max)

Adds ``max`` operator that specifies upper bound for specific index.

When using ``max``, :meth:`~hint` should also be configured to ensure
the query uses the expected index and starting in MongoDB 4.2
:meth:`~hint` will be required.

:param spec: a list of field, limit pairs specifying the exclusive
    upper bound for all keys of a specific index in order.

.. versionchanged:: 3.8
   Deprecated cursors that use ``max`` without a :meth:`~hint`.

.. versionadded:: 2.7


Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé