Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aether/deps.ts>Collection#findAndModify

A Deno library to interface with the Discord API
Latest
method Collection.prototype.findAndModify
import { Collection } from "https://deno.land/x/aether@v0.0.3/deps.ts";

Find and modify a document in one, returning the matching document.

Parameters

optional
filter: Filter<T>

The query used to match documents

optional
options: FindAndModifyOptions<T>

Additional options for the operation (e.g. containing update or remove parameters)

Returns

Promise<T | undefined>

The document matched and modified