Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

How Can I Use customFormatErrorFn to Get What My Resolver Returned (When it Doesn't Match the Schema and Causes an Error) #590

Description

@machineghost

I'm not sure if this is a documentation bug or a feature request. What I'm looking for is simple: when I have (say) a field foo: Foo where Foo has a required sub-field ... and I return an object from my resolver for foo which doesn't have that field ... I want to see the object that my resolver returned (the one with the null field).

However, from the documented fields there doesn't appear to be any way to access the value that was returned from the resolver.

P.S. I should note that the completeValueCatchingError in graphql itself does have a result property with this information, but it somehow seems to get dropped in this library (or again, maybe just isn't documented).

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