Skip to main content
Module

x/aloedb/mod.ts>Operators.moreThan

Light, Embeddable, NoSQL database for Deno 🦕
Go to Latest
function Operators.moreThan
import { Operators } from "https://deno.land/x/aloedb@0.1.0/mod.ts";
const { moreThan } = Operators;

Selects documents where the value of a field more than specified number.

Examples

Example 1

db.documents; // [{ value: 5 }]
db.findOne({ value: moreThan(6) }); // null
db.findOne({ value: moreThan(3) }); // { value: 5 }

Parameters

value: number