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

Public Member Functions

def __init__ (self, inserted_ids, acknowledged)
 
def inserted_ids (self)
 
- Public Member Functions inherited from _WriteResult
def __init__ (self, acknowledged)
 
def acknowledged (self)
 

Detailed Description

The return type for :meth:`~pymongo.collection.Collection.insert_many`.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  inserted_ids,
  acknowledged 
)

Member Function Documentation

◆ inserted_ids()

def inserted_ids (   self)
A list of _ids of the inserted documents, in the order provided.

.. note:: If ``False`` is passed for the `ordered` parameter to
  :meth:`~pymongo.collection.Collection.insert_many` the server
  may have inserted the documents in a different order than what
  is presented here.

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