Skip to main content
Module

x/darango/collection.ts>Collection#findOne

An ArangoDB driver for Deno.
Go to Latest
method Collection.prototype.findOne
import { Collection } from "https://deno.land/x/darango@0.0.4/collection.ts";

Find the first document matching the filter provided.

Parameters

filter: Partial<DocumentData<T>>

Partial document data to filter results by.

Returns

Promise<Document<T> | undefined>

A document matching the filter provided.