New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scala-relay-compiler

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scala-relay-compiler

A compiler tool for building GraphQL-driven Scala.js applications.

  • 0.6.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-29.07%
Maintainers
1
Weekly downloads
 
Created
Source

scala-relay-compiler

The purpose of this project is to generate Scala (sjs) bindings for the relay-compiler. Typically the relay-compiler generates flow bindings along with the compiled queries. This project replaces that generation and outputs js.native traits instead.

Example

$ ./bin/scala-relay-compiler.js --src example/src/ --schema example/schema.graphql --out example/out/

Features

  • Handles names elegantly by scoping them to the companion object.
  • Handles first layer of spreading, right now we spit out js.| to join disjoint fields, even though in fact they are not disjoint, they are a union, however, this requires a fix later down the line.

TODO

  • Med: Fix InlineFragments so they work properly. Right now we just really don't handle them.
  • Big: Fix spreading so it goes recursively? Right now spreading is difficult because the types that are mixed in couple potentially conflict
    • Med: Make it work recursively
    • Med: Generate the necessary class depth.
    • Big: How to handle traversing since the order of the frags are unable to to be changed.

FAQs

Package last updated on 01 Nov 2017

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