ardatan / ardatan/graphql-tools

Fields in extensionASTNodes is undefined

Open
#4,881 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

https://github.com/ardatan/graphql-tools/blob/622713e357af9c1f54f94d57b820428ba277c1f3/packages/utils/src/mapSchema.ts#L536

The fields property is set to undefined for extensionASTNodes, this breaks the `printSubgraphSchema()` from apollo.

Contributor guide

Open the contributing guide

Research direction

Start at packages/utils/src/mapSchema.ts around line 536 and inspect how the fields property is assigned on extensionASTNodes. Reproduce the failure through printSubgraphSchema(), then verify that the property is no longer undefined and the Apollo-related schema printing case works.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.