import { Collection } from "https://deno.land/x/darango@0.1.6/mod.ts";
An object representing a collection on the ArangoDB server.
Methods
private
deleteDocument(key: string): Promise<boolean>private
makeDocument(obj: DocumentData<T>): Document<T>private
updateDocument(key: string, data: DocumentData<T>): Promise<void>find(filter: Partial<DocumentData<T>>): Promise<Document<T>[]>
Find multiple documents matching the filter provided.
findOne(filter: Partial<DocumentData<T>>): Promise<Document<T> | undefined>
Find the first document matching the filter provided.
query(aql: string, options?: CursorOptions): Promise<Document<T>[]>
Run a query, returning the results as Document objects.