graphql

2019-06-27T06:36:47.042800Z

Flip the arguments of attach-resolvers 🙂

Dave Goodchild 2019-06-27T15:59:10.043100Z

sec

Dave Goodchild 2019-06-27T15:59:46.043300Z

LOL in the example I saw it was using threaded macros but I need to pass an argument to the edn readstring function so rewrote it

Dave Goodchild 2019-06-27T16:02:17.043500Z

did that work for you

Dave Goodchild 2019-06-27T16:02:22.043700Z

you mean

(attach-resolvers {get-content :get-content}
?

Dave Goodchild 2019-06-27T16:02:24.043900Z

still not joy

Dave Goodchild 2019-06-27T16:03:59.044100Z

and that looks out of whack with their docs

Dave Goodchild 2019-06-27T16:04:00.044300Z

https://lacinia.readthedocs.io/en/latest/resolve/attach.html

Dave Goodchild 2019-06-27T16:18:58.044700Z

holy cow got it working

Dave Goodchild 2019-06-27T16:19:31.044900Z

unwound it back to threaded macros and added a try - and there is an extraneous set of parens in the schema so it didn't compile after all

Dave Goodchild 2019-06-27T16:19:45.045100Z

but failed silently as I allowed it to

2019-06-27T16:27:28.045300Z

Sorry, yeah it was that function, the threaded macro passes in the result of the previous function into the first arg of the next function, you had it in unthreaded form, but had the arguments flipped. I'm glad you got it working!

2019-06-27T16:27:59.045500Z

Yeah I don't know why it succeeds silently, it might be by design.

Dave Goodchild 2019-06-27T16:45:44.045700Z

maybe

Dave Goodchild 2019-06-27T16:45:51.045900Z

was tough to figure out

Dave Goodchild 2019-06-27T18:57:35.046300Z

now to get it resolving HTTP requests