graphql / graphql/dataloader

[BUG] `this` context not available in typescript definitions

Open
#338 1 comment 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
13.4k
Forks
518
Avg merge
2d 4h
Merged PRs (30d)
2

Description

## Expected Behavior
inside a batch load function, `this` should refer to the data loader instance

## Current Behavior
`this` is not typed inside the batch load function

## Possible Solution

## Steps to Reproduce
attempt to use `this` in a batch loader function, see that typescript complains

## Context
my api call gives me back excess properties, so i want to prime my data loader with the excess data inside my batch function.

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.