Skip to content

Named resolvers with Maybe fields #878

@waj

Description

@waj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions