Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Getting the count of records in platform.api.get

$
0
0

Hi @mrbijan,

You need include query string ?include_count=true in your request.

{
    "resource": [
        {
            "id": 352,
            ...
        },
        ...
    ],
    "meta": {
        "count": 8, <--- here
        "next": 1,
        "schema": {
            "name": "table_name",
            ...
        }
    }
}

This return contain meta.count with the number of registers.
Other possibility, to get only count with query string ?count_only=true

http://wiki.dreamfactory.com/DreamFactory/Features/Database/Records#Common_Parameters_and_Usage (see Selecting Returned Metadata section)

best regards,
Junior Conte


Viewing all articles
Browse latest Browse all 5027

Trending Articles