How are named resolvers supposed to be used with Maybe fields?
Given that NamedResolverT must be instantiated with a m (NamedRef a), if the value is of type Maybe x, it seems that it must be provided as m (Dependency (Maybe x)), which then gets resolved to m (Dependency x).
This appears to eliminate the Maybe from the type, so it seems there's no way to return a null value for that field. What am I missing?
How are named resolvers supposed to be used with
Maybefields?Given that
NamedResolverTmust be instantiated with am (NamedRef a), if the value is of typeMaybe x, it seems that it must be provided asm (Dependency (Maybe x)), which then gets resolved tom (Dependency x).This appears to eliminate the
Maybefrom the type, so it seems there's no way to return a null value for that field. What am I missing?