"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var argument_1 = require("./changes/argument");
function changesInArgument(type, field, oldArg, newArg) {
    var changes = [];
    if (oldArg.description !== newArg.description) {
        changes.push(argument_1.fieldArgumentDescriptionChanged(type, field, oldArg, newArg));
    }
    if (oldArg.defaultValue !== newArg.defaultValue) {
        changes.push(argument_1.fieldArgumentDefaultChanged(type, field, oldArg, newArg));
    }
    if (oldArg.type.toString() !== newArg.type.toString()) {
        changes.push(argument_1.fieldArgumentTypeChanged(type, field, oldArg, newArg));
    }
    return changes;
}
exports.changesInArgument = changesInArgument;
//# sourceMappingURL=argument.js.map