"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMutationOperation = isMutationOperation;
exports.isQueryOperation = isQueryOperation;
exports.isSubscriptionOperation = isSubscriptionOperation;
const getFromAST_js_1 = require("./getFromAST.cjs");
function isOperation(document, operation) {
    return (0, getFromAST_js_1.getOperationDefinition)(document)?.operation === operation;
}
function isMutationOperation(document) {
    return isOperation(document, "mutation");
}
function isQueryOperation(document) {
    return isOperation(document, "query");
}
function isSubscriptionOperation(document) {
    return isOperation(document, "subscription");
}
//# sourceMappingURL=operations.cjs.map
