@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
10 lines • 330 B
JavaScript
import { hashV2PartitionKey } from "./v2.js";
/**
* Generate Hash for a `Multi Hash` type partition.
* @param partitionKey - to be hashed.
* @returns
*/
export function hashMultiHashPartitionKey(partitionKey) {
return partitionKey.map((keys) => hashV2PartitionKey([keys])).join("");
}
//# sourceMappingURL=multiHash.js.map