Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/src/protocol/mod.ts>CommandCursor

MongoDB driver for Deno
Very Popular
Go to Latest
class CommandCursor
import { CommandCursor } from "https://deno.land/x/mongo@v0.31.1/src/protocol/mod.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>