Skip to main content
Module

x/darango/cursor.ts>ArangoCursor

An ArangoDB driver for Deno.
Go to Latest
class ArangoCursor
implements AsyncIterable<T[]>
import { ArangoCursor } from "https://deno.land/x/darango@0.0.4/cursor.ts";

A Cursor object capable of executing a query and returning the results sets.

Constructors

new
ArangoCursor(
ax: axiod,
query: string,
options?: CursorOptions,
)

Properties

private
hasMore: boolean
private
id: string | null
private
options: CursorOptions

Methods

private
getOptions(): { query: string; } & CursorOptions
collect(): Promise<T[]>

Collect all of the results sets and return them as a single array.

[Symbol.asyncIterator](): AsyncIterableIterator<T[]>