Nerdiest Political Manifesto

    graphql-config-utilities
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.5 • Public • Published

    graphql-tool-utilities

    Build Status Build Status License: MIT npm version

    Common utilities for graphql-config.

    Installation

    $ yarn add graphql-config-utilities

    Usage

    Configuration

    This utility reads schema information from a .graphqlconfig file in the project root. The configuration can contain one nameless project or many named projects. The configuration is compatible with the vscode-graphql extension. This extension provides syntax highlighting and autocomplete suggestions for graphql files.

    Each project specifies a schemaPath, include, and exclude globs. Glob patterns match paths relative to the location of the configuration file. Omit exclude if empty.

    See the official specification documentation for more detail and examples.

    Example: single nameless project configuration

    {
      "schemaPath": "build/schema.json",
      "includes": "app/**/*.graphql"
    }

    Example: multi-project configuration

    {
      "projects": {
        "foo": {
          "schemaPath": "build/schema/foo.json",
          "includes": "app/foo/**/*.graphql"
        },
        "bar": {
          "schemaPath": "build/schema/bar.json",
          "includes": "app/bar/**/*.graphql"
        }
      }
    }

    Example: YAML format

    schemaPath: build/schema.json
    includes:
      - 'app/**/*.graphql'

    Keywords

    none

    Install

    npm i graphql-config-utilities

    DownloadsWeekly Downloads

    38,865

    Version

    3.0.5

    License

    MIT

    Unpacked Size

    23.3 kB

    Total Files

    18

    Last publish

    Collaborators

    • shopify-dep