import { CollectionOperator } from "https://deno.land/x/casualdb@v0.1.4/operator/collection.ts";
Constructors
new
CollectionOperator(data: Op[])Methods
findAll(predicate: Predicate<Op>): CollectionOperator<Op>
findAllAndRemove<T = Op>(predicate: Predicate<Partial<T>>): CollectionOperator<Op>
findAllAndUpdate<T = Op>(predicate: Predicate<Partial<T>>, updateMethod: (value: Op) => Op): CollectionOperator<Op>
findById(id: string | number)
findByIdAndRemove(id: string | number)
findByIdAndUpdate(id: string | number, updateMethod: (value: Op) => Op)
page(page: number, pageSize: number): CollectionOperator<Op>