import { hasSortKey } from '../../decorator/metadata/index';
import { attribute } from './logical-operator/index';
export function createIfNotExistsCondition(metadata) {
    const conditionDefFns = [
        attribute(metadata.getPartitionKey()).attributeNotExists(),
    ];
    if (hasSortKey(metadata)) {
        conditionDefFns.push(attribute(metadata.getSortKey()).attributeNotExists());
    }
    return conditionDefFns;
}
//# sourceMappingURL=create-if-not-exists-condition.function.js.map