"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeAssociationKeyword = removeAssociationKeyword;
/**
 * when a child decides it wants to "disconnect" itself from
 * an existing association, the child removes the typeKeyword
 * (ref|<type>|<id>) that "references" the parent
 *
 * @param typeKeywords - the child entity's typeKeywords
 * @param type - the parent entity's type
 * @param id - the parent entity's id
 * @returns {string[]}
 */
function removeAssociationKeyword(typeKeywords, type, id) {
    const associationKeyword = `ref|${type}|${id}`;
    const filteredKeywords = typeKeywords.filter((keyword) => keyword !== associationKeyword);
    return filteredKeywords;
}
//# sourceMappingURL=removeAssociationKeyword.js.map