mhallin / graphql_ppx

GraphQL PPX rewriter for Bucklescript/ReasonML
BSD 3-Clause "New" or "Revised" License
320 stars 42 forks source link

Fragments / Colocate data requirements #89

Open jfrolich opened 4 years ago

jfrolich commented 4 years ago

I am using graphql_ppx in a project and it is amazing. Really great work!

One issue I am trying to tackle is that with React it is very convenient to colocate the data requirements with the components. I have a few issues with fragments currently:

How did other users tackle this. And is there a way to update this ppx to have first class fragment support.

I am a new user to OCaml/ReasonML, and browsed through this codebase and it's pretty extensive.