Determines if a collection exists in ThingsDB.
This function does not generate a change.
has_collection(collection)
| Argument | Type | Description |
|---|---|---|
| collection | str/int (required) | Collection name or Id to check. |
Returns true if the collection exists and otherwise false.
This code shows an example use case of has_collection():
has_collection('stuff');
Return value in JSON format
true