|
hace 4 meses | |
---|---|---|
.. | ||
dist | hace 4 meses | |
src | hace 4 meses | |
LICENSE | hace 4 meses | |
README.md | hace 4 meses | |
package.json | hace 4 meses |
Prints a GraphQL AST with a minimal amount of whitespace. Consider using the
stripIgnoredCharacters
function from graphql
instead of this function.
import { printWithReducedWhitespace } from "@apollo/utils.operationregistrysignature";
const signature = operationRegistrySignature(
parse(`#graphql
query Foo {
bar
}
`),
"Foo",
{ preserveStringAndNumericLiterals: true },
);