collection_info

Returns information about a specific collection.

This function requires READ privileges on the requested collection, or MODIFY privileges on the @thingsdb scope.

This function does not generate an event.

Function

collection_info(name_or_id);

Arguments

Argument Type Description
name_or_id str/int Name or Id of the collection

Return value

Returns info about the collection.

Example

Returns information about collection stuff:

collection_info('stuff');

Example return value in JSON format

{
    "collection_id": 782,
    "created_at": 1579175900,
    "name": "stuff",
    "things": 61352
}