|
4 tháng trước cách đây | |
---|---|---|
.. | ||
dist | 4 tháng trước cách đây | |
src | 4 tháng trước cách đây | |
LICENSE | 4 tháng trước cách đây | |
README.md | 4 tháng trước cách đây | |
package.json | 4 tháng trước cách đây |
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 },
);