New in 1.40.0 (BETA)

count()

Returns the total number of items in the given DataScope.

Returns

Number or null – The total number of items in the DataScope concerned, ignoring limit. The returned count might be just a rough estimate, depending on the implementation on the backend side. Returns null while loading and if called on a DataScope derived from a DataClass whose index callback doesn’t include count.

Throws

[New in 1.43.0]DataScopeError – if a ClientError or DataConnectionError occurs while the index callback of a DataClass is being executed.