graphql-tool-utilities
Common utilities for GraphQL developer tools
Last updated 4 months ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-tool-utilities 
SYNC missed versions from official npm registry.

graphql-tool-utilities

Common utilities for GraphQL developer tools

Installation

npm install graphql-tool-utilities --save

or, with Yarn:

yarn add graphql-tool-utilities

Usage

AST

compile(schema: GraphQLSchema, document: DocumentNode, options?: CompilerOptions): AST

Compiles the provided schema and document into an intermediary representation using https://github.com/apollographql/apollo-cli/blob/master/packages/apollo-codegen-core/src/compiler/legacyIR.ts. This intermediate representation makes it easy to navigate through operations and their fields, without having to manually traverse the document and associate fields with the schema manually.

AST is our own improvement to the LegacyCompilerContext type definitions, but still fully backwards compatible with LegacyCompilerContext. See the TypeScript type definition for a detailed description of the returned AST type (or see LegacyCompilerContext inside the apollo-codegen-core module).

Current Tags

  • 1.1.0                                ...           latest (4 months ago)
  • 0.10.0-beta.1                                ...           next (9 months ago)

24 Versions

  • 1.1.0                                ...           4 months ago
  • 1.0.0                                ...           8 months ago
  • 0.10.1                                ...           8 months ago
  • 0.10.0                                ...           9 months ago
  • 0.10.0-beta.1                                ...           9 months ago
  • 0.9.2                                ...           9 months ago
  • 0.9.1                                ...           a year ago
  • 0.9.0                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.8.0-beta.3                                ...           a year ago
  • 0.8.0-beta.2                                ...           a year ago
  • 0.8.0-beta.1                                ...           a year ago
  • 0.7.4                                ...           a year ago
  • 0.7.3                                ...           a year ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |