mattkrick / cashay

:moneybag: Relay for the rest of us :moneybag:
MIT License
453 stars 28 forks source link

Remove unnecessary code from client for transformSchema #75

Open mattkrick opened 8 years ago

mattkrick commented 8 years ago

By putting the loader inside the client.js, we're sending all the schema creation logic to the client, which is not necessary. Furthermore, the only reason stuff like introspectionQuery is needed is if someone is getting the schema remotely, which I assume is a minority of folks.

We gotta come up with a better way to keep compile-time logic outside of the client payload. Starting point: run webpack stats & see what depends on transformSchema