graphql-go / graphql-go/graphql

Custom DefaultResolveFn

Open
#507 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

Hey,

I have a custom type system and i have few constraints:

1. I cannot implement Resolve on the object level as I cannot change the type system.
2. I don't want to implement a resolver on every low level field just to resolve the custom object
3. Default DefaultResolveFn fails to resolve the custom object.

Unless there's a better approach, I would like to provide a custom `DefaultResolveFn`.

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.