0.0.1 • Published 4 years ago

relay-compiler-language-js-only-flow v0.0.1

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

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