|
před 4 měsíci | |
---|---|---|
.. | ||
dist | před 4 měsíci | |
src | před 4 měsíci | |
LICENSE | před 4 měsíci | |
README.md | před 4 měsíci | |
package.json | před 4 měsíci |
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 },
);