Skip to content

Named resolvers with Maybe fields #878

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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