3.0.0 • Published 1 year ago

@apollo/utils.printwithreducedwhitespace v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

printWithReducedWhitespace

Prints a GraphQL AST with a minimal amount of whitespace. Consider using the stripIgnoredCharacters function from graphql instead of this function.

Usage

import { printWithReducedWhitespace } from "@apollo/utils.operationregistrysignature";

const signature = operationRegistrySignature(
  parse(`#graphql
    query Foo {
      bar
    }
  `),
  "Foo",
  { preserveStringAndNumericLiterals: true },
);