mingo
Version:
MongoDB query language for in-memory objects
9 lines (8 loc) • 454 B
TypeScript
import { ExpressionOperator } from "../../types";
/**
* Computes and returns the hash value of the input expression. A hash function maps a key or string to a fixed-size numeric value.
* The user-defined hash function is used when provided, otherwise the internal default is used.
*
* See {@link https://docs.mongodb.com/manual/reference/operator/aggregation/toHashedIndexKey/}
*/
export declare const $toHashedIndexKey: ExpressionOperator<number>;