Do we have library like https://github.com/retro/graphql-builder but which generate full final string? > Calling the GraphQL API is out of the scope of this library, but it can be easily implemented with any of the ClojureScript AJAX Libraries. sadly the library doesn’t offer the most important part here so final string.
I have feeling graphql in Clojure is a little neglected
Checkout #pathom and #fulcro Im working on tools to expose a #eql API as GraphQL if your client really need it
EQL sounds great but it will make issue to use outside Clojure world, right?
There is some solutions already https://github.com/denisidoro/graffiti I'm working in another approach
thanks, do you know more useful libraries?
No ATM but I'm really excited with #eql and at work all we use it in many context.
pathom is great. You are right.
still I have concerns about fulcro, because it is framework
Do you use this?
well it says it is library
fulcro is FE only?
no, it looks like it is BE too
so it is framework, not library?
today fulcro is a framework, but it's still very modular. Anywhere you can simply put, for example, a #re-frame component or export a #fulcro and mount inside a "vanilla" react
app
fulcro is a framework because it manage the state and the network for you
but you can at any moment, take control of the state atom and manage it by yourself (if you really need)
finally I can write this things my own, but I didn’t want to 🙂
Final string is just wrapping the output in a json with "query" right? I don't think it's neglected in Clojure. Fore several reason javascript is more used with GraphQL, with more tools available, but also more fragmented.
No, it also needs to replace variables in string
But we need tools to test graphql server in Clojure, so we should be able to easy generate queries and test them
The best in the same way like in cljs