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

x/aloedb/lib/database.ts>Database#findOne

Light, Embeddable, NoSQL database for Deno 🦕
Latest
method Database.prototype.findOne
import { Database } from "https://deno.land/x/aloedb@0.9.0/lib/database.ts";

Find document by search query.

Parameters

optional
query: Query<Schema> | QueryFunction<Schema>

Document selection criteria.

Returns

Promise<Schema | null>

Found document.