getDataSummary does not work

function getDataSummary as is describet in doo.table deas not work. I need reach only max of values in iDSpotrebyAutoModelu with no filtering.

            const spotrebyMax = await doo.table.getDataSummary('spotrebyModelu',{
                filter: [
                    {
                    "field": "iDSpotrebyAutoModelu",
                    "operator": "gte",
                    "value": "1"
                    }
                ],
                fields: {
                    "iDSpotrebyAutoModelu":{ aggregations: ["max"]}
            }
            }, 
                )

return only
image

Hi,
I tried your script on my example. And it works correctly. Check the internal table names, fields if they really match it should all work.

    const numberMax = await doo.table.getDataSummary('company', {
        filter: [
            {
                "field": "number",
                "operator": "gte",
                "value": "1000"
            }
        ],
        fields: {
            "number": { aggregations: ["max"] }
        }
    }
    )

    console.log(numberMax);

image

Regards,

Filip