"use strict";
/*
 * Copyright (c) 2022.
 * Author Peter Placzek (tada5hi)
 * For the full copyright and license information,
 * view the LICENSE file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeQueryRelations = exports.buildQueryRelations = void 0;
const smob_1 = require("smob");
const utils_1 = require("../../utils");
function buildQueryRelations(input) {
    if (typeof input === 'undefined') {
        return input;
    }
    return (0, utils_1.flattenToKeyPathArray)(input);
}
exports.buildQueryRelations = buildQueryRelations;
function mergeQueryRelations(target, source) {
    return (0, smob_1.mergeArrays)(target || [], source || [], true);
}
exports.mergeQueryRelations = mergeQueryRelations;
//# sourceMappingURL=build.js.map