apollographql / apollographql/datasource-rest

headers in datesource-rest get and fetch is not compatible with node fetch which accepts HeadersInit

Open
#382 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
48
Forks
21
PR merge metrics
No merged PRs in 30d

Description

In node fetch, heades is HeadersInit but datasource-rest get/fetch, it only accepts Record which is just partial in HeadersInit

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the datasource-rest get and fetch methods and comparing their headers type with the HeadersInit type accepted by node fetch. Check any nearby type or request tests; done when both methods accept the intended HeadersInit-compatible inputs without breaking existing header usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, backend
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.