graphql-go / graphql-go/graphql

Extension question

Open
#480 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

First off, great work on the Extensions support, I am very excited about that and have already begun using them!

My question is just on idiomatic usage of the various lifecycle hooks. I've noticed that most only accept context, so I can't access other valuable information that I may want for my extension. Is it recommended to attach any data I need to context so it's available later in the lifecycle?

For example, if I'd like to use `graphql.Params` inside `ParseDidFinish`, would I attach to context?

Thanks again and great work!

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.