Flip the arguments of attach-resolvers
🙂
sec
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
did that work for you
you mean
(attach-resolvers {get-content :get-content}
?still not joy
and that looks out of whack with their docs
https://lacinia.readthedocs.io/en/latest/resolve/attach.html
holy cow got it working
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
but failed silently as I allowed it to
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!
Yeah I don't know why it succeeds silently, it might be by design.
maybe
was tough to figure out
now to get it resolving HTTP requests