relay-compiler-language-js-only-flow

0.0.1 • Public • Published

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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i relay-compiler-language-js-only-flow

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

2.53 kB

Total Files

7

Last publish

Collaborators

  • ekosz