MongoCursor.empty

bool empty() @property

Returns true if there are no more documents for this cursor.

Throws

An exception if there is a query or communication error.