public class RemoteMongoCursor<T> where T : Decodable, T : Encodable
RemoteMongoCursor allows asynchronous traversal of the result of a
aggregate operation on a
You can obtain an instance of the cursor by calling
RemoteMongoReadOperation is the result
of a find or aggregate operation on a
Retrieves the next document in this cursor, potentially fetching from the server.
public func next(_ completionHandler: @escaping (StitchResult<T?>) -> Void)
The completion handler to call when the document is retrieved or if the operation fails. This handler is executed on a non-main global
DispatchQueue. If the operation is successful, the result will contain an optional
Tindicating the next document in the cursor. The document will be
nilif there are no more documents in the cursor.