|
|
há 10 meses atrás | |
|---|---|---|
| .. | ||
| dist | há 10 meses atrás | |
| src | há 10 meses atrás | |
| LICENSE | há 10 meses atrás | |
| README.md | há 10 meses atrás | |
| package.json | há 10 meses atrás | |
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 },
);