Any easy way to get a record ID from a loaded up array?

I tried going through wiki and API documentation, but there is no mention of accessing record IDs (outside of share button, but that is not a solution for data manipulation)

I load array with getdata and need to get the recordID value.

Here is my code snippet with getdata

  let zakaznik_id = await doo.model.zakaznik.value.id; // Proměnná, kde se vytáhne ID z přiřazeného zákazníka
        console.log(zakaznik_id);

    let pepik= await doo.table.getData("opravovanazarizeni",
        {
            filter:"zakaznik.id(eq)"+ zakaznik_id
        } 
    );

Here is an array that I get

How would you go about using the data[].fields.zakazni.id? Using Javascript is such a hassle, if there was a way to just call an SQL query, it would make my life significantly easier :joy:
A simple query like this would make life a whole lot easier.

SELECT ZAŘÍZENÍ.ID FROM ZAŘÍZENÍ
WHERE ZÁKAZNÍK.ID='ID';