@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
13 lines • 466 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashMultiHashPartitionKey = hashMultiHashPartitionKey;
const v2_js_1 = require("./v2.js");
/**
* Generate Hash for a `Multi Hash` type partition.
* @param partitionKey - to be hashed.
* @returns
*/
function hashMultiHashPartitionKey(partitionKey) {
return partitionKey.map((keys) => (0, v2_js_1.hashV2PartitionKey)([keys])).join("");
}
//# sourceMappingURL=multiHash.js.map