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

relay-compiler-language-js-only-flow

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relay-compiler-language-js-only-flow

Only generate flow types using the relay-compiler

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

js-only-flow

This is relay-compiler language plugin that emits .graphql.js files that only contain the flowtype information.

Why?

At Lattice we love GraphQL, Relay, and Flow. Many of our internal backend services speak to each over using GraphQL. One of the best parts of using Relay on the client has been being able to type-check our code against our GraphQL queries. But we wanted that same soundness when doing server to server commination without using react-relay.

Usage

Add something like this to your package.json file:

"scripts": {
  "graphql:gen": "relay-compiler --schema {{pathToSchema}} --src src --language js-only-flow"
}

FAQs

Package last updated on 18 Apr 2020

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