scalajs-react-interface / discuss

Community forum for SRI
Apache License 2.0
0 stars 0 forks source link

Add fields to the ConcreteBatch facade in relay #2

Closed virtualirfan closed 7 years ago

virtualirfan commented 7 years ago

It appears that in JS land for Facebook's relay, ConcreteBatch has these fields.

/: ConcreteBatch/ { "fragment": {…}, "id": null, "kind": "Batch", "metadata": {}, "name": "appQuery", "query": {…}, "text": {…}, };

In particular, I needed to reference .text field of the Scala type ConcreteBatch to pull out the flattened representation of the Query from JS land.

I'll attach a simple PR.

virtualirfan commented 7 years ago

<original issue was closed by Rakshak Bot.

The PR is here: https://github.com/scalajs-react-interface/relay/pull/1#pullrequestreview-45866551