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> (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> db/app-db
#<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 {}}}}>
is there something I am missing ?
Hi, this looks like a bug
Could you try {:ws {:url nil}}
Or actually just leave out the :ws
key altogether
So just {:http {:url "..."}}
There's new alphas up on Clojars.
Probably turn into full releases next week.
hello, is there possible to use lacinia with lacinia pedestal as webserver too?
You should read up on Pedestal, it's the general purpose side of this equation, lacinia is the domain-specific part.
What do you mean, you can use lacinia-pedestal to make a pedestal service serving a graphql schema handled by lacinia
There is a little example in lacinia-pedestals readme: https://github.com/walmartlabs/lacinia-pedestal#usage