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

Change EnforceChangesetEditablePipe to use injected, request-scoped GQL context #3309

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

CarsonF
Copy link
Member

@CarsonF CarsonF commented Oct 8, 2024

This wasn't possible at the time.
Since then nestjs/graphql#325 has been resolved & released in v11.0.0

This is better because this is a global pipe, so it runs for GQL requests & HTTP requests.
This check is easier because it doesn't assume that you are looking for a GQL context.
The ALS getter does assume this, so here we had to try/catch check for specific exception to ignore.

In general this is easier, and works now.

…QL context

This wasn't possible at the time.
Since then nestjs/graphql#325 has been resolved & released in v11.0.0
@CarsonF CarsonF force-pushed the graphql/refactor-changeset-editable-context branch from bfc66fa to 1fa42ad Compare October 8, 2024 17:29
Base automatically changed from graphql/shuffle to develop October 8, 2024 19:17
@CarsonF CarsonF merged commit 27ebbb1 into develop Oct 9, 2024
13 checks passed
@CarsonF CarsonF deleted the graphql/refactor-changeset-editable-context branch October 9, 2024 18:05
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