ardatan / ardatan/graphql-tools

I set requireResolversForResolveType: 'ignore', then get this warning Type "QueryResponse" is missing a "__resolveType" resolver.

Open
#4,285 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
830
Avg merge
10h 59m
Merged PRs (30d)
45

Description

**Describe the bug**

**To Reproduce**
I set requireResolversForResolveType: 'ignore', then get this warning Type "QueryResponse" is missing a "__resolveType" resolver.
![CleanShot 2022-03-08 at 11 35 52](https://user-images.githubusercontent.com/26477346/157161371-7b493826-dfdd-4561-8417-b0026f1a927a.png)

**Expected behavior**

**Environment:**

- OS: mac os 12.2.1
- `@graphql-tools/schema`: 8.3.2
- NodeJS: 13

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Start at the @graphql-tools/schema entry point and trace handling of requireResolversForResolveType using the reported configuration and environment. Reproduce the warning for QueryResponse; done means the 'ignore' setting no longer emits the missing __resolveType warning, with a regression test covering that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.