mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 309 B
TypeScript
import { Any, AnyObject, Options } from "../../../types";
/**
* Converts a value to a long. If the value cannot be converted to a long, $toLong errors.
* If the value is null or missing, $toLong returns null.
*/
export declare const $toLong: (obj: AnyObject, expr: Any, options: Options) => number | null;