Facilities for leveraging core.async with Lacinia.
Facilities for leveraging core.async with Lacinia.
(channel->result ch)
Converts a core.async channel into a Lacinia ResolverResult.
If the channel conveys an exception, that is converted to an error map and delivered (with a nil value).
Otherwise the first value conveyed is delivered.
Converts a core.async channel into a Lacinia ResolverResult. If the channel conveys an exception, that is converted to an error map and delivered (with a nil value). Otherwise the first value conveyed is delivered.
(decorate-channel->result field-resolver)
A field resolver decorator that ensures that a field resolver that returns a channel will be wrapped to return a ResolverResult.
A field resolver decorator that ensures that a field resolver that returns a channel will be wrapped to return a ResolverResult.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close