Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operationName to ScriptContextData #2464

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

lovrog
Copy link

@lovrog lovrog commented Mar 20, 2024

Fixes

#2463

Checks

  • Ran yarn test-build
  • Updated relevant documentations
  • Updated matching config options in altair-static

Changes proposed in this pull request:

This change adds operationName string field to the ScriptContextData object. The value is populated from the global state (state.query.selectedOperation).

This value is then available through altair.data helper object in pre/post-request context.

Docs have been updated to mention the newly available field.

Copy link
Collaborator

@imolorhe imolorhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the change!

@imolorhe imolorhe added this pull request to the merge queue Mar 21, 2024
Merged via the queue into altair-graphql:master with commit 81414d4 Mar 21, 2024
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants