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 (1,961 stars) (219 forks)batch import
help wanted

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