sangria-graphql/sangria

[Feature Request] flatMap over DeferredValue

Open

#629 opened on May 3, 2021

View on GitHub
 (0 comments) (2 reactions) (0 assignees)Scala (219 forks)batch import
help wanted

Repository metrics

Stars
 (1,961 stars)
PR merge metrics
 (Avg merge 8d 15h) (4 merged PRs in 30d)

Description

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.

Contributor guide