Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function normalizeOperation({
document,
operationName,
}: {
document: DocumentNode;
operationName: string;
}): string {
return printWithReducedWhitespace(
sortAST(
removeAliases(
hideLiterals(dropUnusedDefinitions(document, operationName)),
),
),
);
}