sangria-graphql/sangria

[Feature Request] flatMap over DeferredValue

Aperta

#629 aperta il 3 mag 2021

 (0 commenti) (2 reazioni) (0 assegnatari)Scala (219 fork)batch import
help wanted

Metriche repository

Star
 (1961 stelle)
Metriche merge PR
 (Merge medio 8g 15h) (4 PR mergiate in 30 g)

Descrizione

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.

Guida contributor