@relay-graphql-js/graphql-config

full graphql config for relay graphql

Usage no npm install needed!

<script type="module">
  import relayGraphqlJsGraphqlConfig from 'https://cdn.skypack.dev/@relay-graphql-js/graphql-config';
</script>

README

@relay-graphql-js/graphql-config

npm build

Simple configuration for graphql-config compatibility for Relay projects.

Features:

  • Read all user configuration from [relay-config], if the project is setup with it.
  • Provides definitions for all Relay directives for validation and auto-completion purposes.
  • Provides validation of @argumentDefinitions and @arguments directives.

Changelog

Install

# using npm
npm install --save-dev @relay-graphql-js/graphql-config

# using yarn
yarn add --dev @relay-graphql-js/graphql-config

Usage

In your graphql.config.js file:

const { config } = require("@relay-graphql-js/graphql-config").generateConfig()
module.exports = config