Skip to content

Only generate flow types using the relay-compiler

Notifications You must be signed in to change notification settings

latticehr/relay-compiler-language-js-only-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Only generate flow types using the relay-compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published