sangria-graphql/sangria

[Feature Request] flatMap over DeferredValue

开放

#629 创建于 2021年5月3日

 (0 条评论) (2 个反应) (0 位负责人)Scala (219 个派生)batch import
help wanted

仓库指标

星标
 (1,961 个星标)
PR 合并指标
 (平均合并 8天 15小时) (30 天内合并 4 个 PR)

描述

Having map accessible on a DeferredValue is already very useful but I'd like to also have flatMap available so I can return another DeferredValue based on the result of the later and return it's subsequent value. I think there would be some overlap with the Relation-based mechanics but I think adding flatMap would add more ergonomics to dealing with DeferredValues.

贡献者指南