Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
class CommandCursor
import { CommandCursor } from "https://deno.land/x/mongo@v0.31.1/src/protocol/cursor.ts";

Constructors

new
CommandCursor(protocol: WireProtocol, executor: () => Promise<CommandCursorOptions<T>>)

Methods

private
execute()
forEach(callback: (item: T, index: number) => void)
map<M>(callback: (item: T, index: number) => M): Promise<M[]>
next(): Promise<T | undefined>
toArray(): Promise<T[]>
[Symbol.asyncIterator](): AsyncGenerator<T>