Fork me on GitHub
#graphql
<
2018-06-04
>
eraserhd18:06:57

Is it true that you can't use resolve/with-context with a sequence? If so, should I (map #(resolve/with-context ...)) over it?

hlship18:06:19

Funny, I wrote that code and I still get it backwards. You should be able to use resolve/with-context around the sequence. The values themselves should be resolved (e.g., a map), and not ResolverResults.

hlship18:06:30

It might be possible to change things so that the values can be ResolveResults as well.

hlship18:06:43

But I don't believe the current code supports that. I'd have to check the tests.

eraserhd19:06:49

uhhh. OK, maybe I fat-fingered something. Let me look.

eraserhd19:06:38

I'm getting `clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException in Interceptor :com.wal martlabs.lacinia.pedestal/query-executor - Don't know how to create ISeq from: com.walmartlabs .lacinia.resolve$with_context$reify__34837` with 0.26.0

eraserhd19:06:32

Bumped lacinia-pedestal to 0.7.0, same.

eraserhd19:06:40

ahhh, my fault o_O