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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @apollo/utils.printwithreducedwhitespace

      Weekly Downloads

      1,406,369

      Version

      3.0.0

      License

      MIT

      Unpacked Size

      6.83 kB

      Total Files

      10

      Last publish

      Collaborators

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