Phalcon\Db\Adapter\MongoDB\InsertOneResult::getInsertedId PHP Method

getInsertedId() public method

If the document already an ID prior to insertion (i.e. the driver did not need to generate an ID), this will contain its "_id". Any driver-generated ID will be an MongoDB\BSON\ObjectID instance.
public getInsertedId ( ) : mixed
return mixed
    public function getInsertedId()
    {
        return $this->insertedId;
    }