graphql

2020-06-05T14:57:01.146200Z

hi people!! has anyone here ever played with re-graph please ? I have a little issue while trying to initialize it with re-frame. Even though, I only set the http part of the re-graph init configuration with the following :

cljs.user&gt; (rf/dispatch [::re-graph/init {:http {:url "<https://my.service.com/graphql>"} :ws nil}])
when I check re-frame.db/app-db though, I have the following :
cljs.user&gt; db/app-db
#&lt;Atom: {:re-graph {:re-graph.internals/default {:websocket {:url "ws://localhost:8080/graphql-ws", :sub-protocol "graphql-ws", :ready? false, :connection-init-payload {}, :queue [], :reconnect-timeout 5000, :resume-subscriptions? true}, :http-url "/graphql", :http-parameters {}, :subscriptions {}}}}&gt;

2020-06-05T14:57:08.146600Z

is there something I am missing ?

2020-06-05T17:18:59.147200Z

Hi, this looks like a bug

2020-06-05T17:20:17.147400Z

Could you try {:ws {:url nil}}

2020-06-05T17:21:09.147600Z

Or actually just leave out the :ws key altogether

2020-06-05T17:21:59.147800Z

So just {:http {:url "..."}}

hlship 2020-06-05T21:05:19.148200Z

There's new alphas up on Clojars.

hlship 2020-06-05T21:05:29.148500Z

Probably turn into full releases next week.

3
fabrao 2020-06-05T22:13:55.149400Z

hello, is there possible to use lacinia with lacinia pedestal as webserver too?

hlship 2020-06-06T17:34:35.150800Z

You should read up on Pedestal, it's the general purpose side of this equation, lacinia is the domain-specific part.

2020-06-05T22:22:55.149500Z

What do you mean, you can use lacinia-pedestal to make a pedestal service serving a graphql schema handled by lacinia

2020-06-05T22:24:34.149700Z

There is a little example in lacinia-pedestals readme: https://github.com/walmartlabs/lacinia-pedestal#usage