Skip to main content
Module

x/aloedb/mod.ts>Database#updateOne

Light, Embeddable, NoSQL database for Deno 🦕
Go to Latest
method Database.prototype.updateOne
import { Database } from "https://deno.land/x/aloedb@0.1.0/mod.ts";

Modifies an existing document.

Parameters

query: Query<Schema> | QueryFunction<Schema>

Document selection criteria.

update: Update<Schema> | UpdateFunction<Schema>

The modifications to apply.

Returns

Promise<Schema | null>

Original document that has been modified.