Skip to content

ContextDataFetcherDecorator should capture from global and local GraphQLContext #688

Closed
@bclozel

Description

@bclozel

Currently, the ContextDataFetcherDecorator captures context values from the global GraphQLContext and set captured values in the execution context of the decorated DataFetcher. Each DataFetcher can also contribute additional context values by returning a DataFetcherResult containing a localContext that will be used when calling other DataFetcher lower in the hierarchy call.

We should ensure that ContextDataFetcherDecorator captures from both global and local GraphQLContext, if the latter is present. This requires a change in the context-propagation library, see micrometer-metrics/context-propagation#98.

Metadata

Metadata

Assignees

Labels

in: coreIssues related to config and core supporttype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions