Very good example. In particular, I think this library should be compared to the ppx_graphql (GitHub - andreas/ppx_graphql: Type-safe GraphQL queries in OCaml) library in OCaml, a language which has deriving capacities. I wouldn’t be able to do a fair comparison of the two given that I haven’t yet used the elm-graphql library (only looked at it) and I have used the ppx_graphql library too little to really form a strong opinion. But my impression is still that the solution proposed with elm-graphql ends up much cleaner because once the tool has generated the required encoders / decoders, you are back to a simple language where usual, simple constructs work, and all the usual tooling can be used to help. On the contrary, ppx_graphql lets you write long strings containing actual GraphQL query and typecheck them in your code but none of the usual ways of splitting your code in small functions and the editor support tools that you are used to relying on seem to be of any help anymore.