import { getOperationDefinition } from "./getFromAST.js";
function isOperation(document, operation) {
    return getOperationDefinition(document)?.operation === operation;
}
export function isMutationOperation(document) {
    return isOperation(document, "mutation");
}
export function isQueryOperation(document) {
    return isOperation(document, "query");
}
export function isSubscriptionOperation(document) {
    return isOperation(document, "subscription");
}
//# sourceMappingURL=operations.js.map
