Fork me on GitHub
#graphql
<
2020-03-12
>
kwladyka22:03:04

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.

kwladyka22:03:38

I have feeling graphql in Clojure is a little neglected

souenzzo12:03:21

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

👍 4
kwladyka16:03:53

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

souenzzo17:03:26

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

kwladyka17:03:57

thanks, do you know more useful libraries?

souenzzo18:03:05

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

kwladyka23:03:15

pathom is great. You are right.

kwladyka23:03:12

still I have concerns about fulcro, because it is framework

kwladyka23:03:16

Do you use this?

kwladyka23:03:39

well it says it is library

kwladyka23:03:50

fulcro is FE only?

kwladyka23:03:04

no, it looks like it is BE too

kwladyka23:03:24

so it is framework, not library?

souenzzo14:03:56

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)

kwladyka22:03:23

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

gklijs23:03:01

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.

kwladyka23:03:44

No, it also needs to replace variables in string

kwladyka23:03:07

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

kwladyka23:03:21

The best in the same way like in cljs