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

Send request to executables in place of context #107

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

gmac
Copy link
Owner

@gmac gmac commented Dec 27, 2023

⚠️ Minor breaking change

This adjusts the call signature of the Executable interface to receive a request object rather than context. A Request object is considerably more useful because it (will soon) include schema/supergraph information, and also provides context. This will enable executables to be a whole lot smarter.

Migration steps

  1. See doc changes in PR.
  2. The former context argument can now be accessed via request.context.

This was referenced Dec 27, 2023
@gmac gmac force-pushed the gmac/executable_gets_request branch from 49d6ebe to 1889810 Compare December 27, 2023 02:38
@gmac gmac changed the base branch from main to v1_2_0 December 27, 2023 02:38
@gmac gmac merged commit b0aa1eb into v1_2_0 Dec 27, 2023
@gmac gmac deleted the gmac/executable_gets_request branch December 27, 2023 02:39
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.

1 participant