public insert ( string $collectionName, array $document, array $options = [] ) : MongoDB\BSON\ObjectID | boolean | ||
$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. |