public function insert($data, $options = [])
    {
        return $this->database->createCommand()->insert($this->name, $data, $options);
    }
public function insert($data, $options = [])
    {
        return $this->database->createCommand()->insert($this->name, $data, $options);
    }
public function insert ( $ data , $ options = [ ] ) { return $ this -> database -> createCommand ( ) -> insert ( $ this -> name , $ data , $ options ) ; }
Inserts new data into collection.
@param array|object $data data to be inserted.
@param array $options list of options in format: optionName => optionValue.
@return \MongoDB\BSON\ObjectID new record ID instance.
@throws Exception on failure.
Inserts new data into collection .