insert() public method
Inserts new document into collection.
public \MongoDB\BSON\ObjectID|boolean insert ( $collectionName, $document, $options = [] )$collectionName string
Collection name $document array
Document content $options array
List of options in format: optionName => optionValue. return \MongoDB\BSON\ObjectID|boolean
Inserted record ID, false - on failure.