Fork me on GitHub
#pedestal
<
2017-12-13
>
pasi12:12:32

hey guys. Is there an up-to-date guide for automatically reloading code? The auto reload server example is from 2013

souenzzo12:12:43

just turn your ::http/routes into a function @pasi

pasi13:12:55

hm, good idea. I guess in my case I'll just turn this into a function: (def service (lacinia/service-map schema {:graphiql true}))

souenzzo13:12:28

::http/routes my-routes -> ::http/routes #(my-routes) lacinia has own docs about hot reload.

souenzzo13:12:49

https://github.com/walmartlabs/lacinia-pedestal#development-mode (def service (lacinia/service-map hello-schema {:graphiql true})) -> (def service (lacinia/service-map #(hello-schema) {:graphiql true}))

pasi13:12:47

nod, cheers