graphql

kwladyka 2020-03-12T22:43:04.068800Z

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.

kwladyka 2020-03-12T22:45:38.069800Z

I have feeling graphql in Clojure is a little neglected

souenzzo 2020-03-13T12:40:21.085500Z

Checkout #pathom and #fulcro Im working on tools to expose a #eql API as GraphQL if your client really need it

👍 1
kwladyka 2020-03-13T16:48:53.088100Z

EQL sounds great but it will make issue to use outside Clojure world, right?

souenzzo 2020-03-13T17:33:26.088400Z

There is some solutions already https://github.com/denisidoro/graffiti I'm working in another approach

kwladyka 2020-03-13T17:48:57.088700Z

thanks, do you know more useful libraries?

souenzzo 2020-03-13T18:53:05.088900Z

No ATM but I'm really excited with #eql and at work all we use it in many context.

kwladyka 2020-03-14T23:07:15.099300Z

pathom is great. You are right.

kwladyka 2020-03-14T23:08:12.099500Z

still I have concerns about fulcro, because it is framework

kwladyka 2020-03-14T23:08:16.099700Z

Do you use this?

kwladyka 2020-03-14T23:08:39.099900Z

well it says it is library

kwladyka 2020-03-14T23:10:50.100100Z

fulcro is FE only?

kwladyka 2020-03-14T23:11:04.100300Z

no, it looks like it is BE too

kwladyka 2020-03-14T23:11:24.100500Z

so it is framework, not library?

souenzzo 2020-03-16T14:42:56.100700Z

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)

kwladyka 2020-03-12T22:46:23.070200Z

finally I can write this things my own, but I didn’t want to 🙂

gklijs 2020-03-12T23:03:01.074700Z

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.

kwladyka 2020-03-12T23:06:44.075600Z

No, it also needs to replace variables in string

kwladyka 2020-03-12T23:08:07.077100Z

But we need tools to test graphql server in Clojure, so we should be able to easy generate queries and test them

kwladyka 2020-03-12T23:08:21.077600Z

The best in the same way like in cljs