Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages