Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-relay

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-relay

Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
increased by9.68%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-react-relay npm version

Babel plugin for Relay react-relay with support for multiple source types (json, schema, url)

Install

$ npm install -D babel-plugin-react-relay

Configuration

Add one the following source options to your package.json file.

Source Types

JSON
{
  "graphql": {
    "json": "./exported-schema.json"
  }
}
Schema
{
  "graphql": {
    "schema": "./schema-definition.js"
  }
}
URL
{
  "graphql": {
    "url": "http://localhost:3000/schema.json"
  }
}

Options

Environment Variables

Sometimes you need the flexibility to dynamically configure your GraphQL schema source via environment variables. You can easily to that using the following syntax (works for all source types):

{
  "graphql": {
    "url": {
    	"env": "SCHEMA_ENDPOINT" // uses $SCHEMA_ENDPOINT
    }
  }
}

License

MIT License

Keywords

FAQs

Package last updated on 02 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc