"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../../decorator/metadata/index");
const index_2 = require("./logical-operator/index");
function createIfNotExistsCondition(metadata) {
    const conditionDefFns = [
        index_2.attribute(metadata.getPartitionKey()).attributeNotExists(),
    ];
    if (index_1.hasSortKey(metadata)) {
        conditionDefFns.push(index_2.attribute(metadata.getSortKey()).attributeNotExists());
    }
    return conditionDefFns;
}
exports.createIfNotExistsCondition = createIfNotExistsCondition;
//# sourceMappingURL=create-if-not-exists-condition.function.js.map