@apollo/utils.printwithreducedwhitespace
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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 },
);

Package Sidebar

Install

npm i @apollo/utils.printwithreducedwhitespace

Weekly Downloads

1,502,059

Version

3.0.0

License

MIT

Unpacked Size

6.83 kB

Total Files

10

Last publish

Collaborators

  • dkuc
  • glasser
  • trevor.scheer
  • apollo-bot