RemoteMongoCursor
public class RemoteMongoCursor<T> where T : Decodable, T : Encodable
A cursor of documents which can be traversed asynchronously. A RemoteMongoCursor can be the result of a find or
aggregate operation.
-
Retrieves the next document in this cursor, potentially fetching from the server.
Declaration
Swift
public func next(_ completionHandler: @escaping (StitchResult<T?>) -> Void)Parameters
completionHandlerThe 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 optionalTindicating the next document in the cursor. The document will benilif there are no more documents in the cursor.
RemoteMongoCursor Class Reference