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

[GraphQL] Include variables in metadata. #237

Closed
wants to merge 1 commit into from

Conversation

alloy
Copy link
Contributor

@alloy alloy commented Aug 16, 2018

This allows one to identify problematic queries when specific variables are applied.

A filter callback is included so sensitive data can be redacted, which I assume is why this wasn’t included yet.

| Option | Default | Description |
|-----------------|--------------------------------------------------|------------------------------------------------------------------|
| service | *Service name of the app suffixed with -graphql* | The service name for this integration. |
| filterVariables | `variables => variables` | A callback that allows filtering of variables before submission. |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This default value isn’t actually defined like that (if none is specified it just gets skipped), but I used it to illustrate the signature of the callback.

@alloy alloy force-pushed the graphql-include-variables branch 2 times, most recently from 2baae83 to cac8288 Compare August 16, 2018 11:05
@alloy
Copy link
Contributor Author

alloy commented Aug 16, 2018

Looks like the CI failure may just be a hiccup, but can’t re-run the job.

This allows one to identify problematic queries when specific variables
are applied.

A filter callback is included so sensitive data can be redacted.
@alloy
Copy link
Contributor Author

alloy commented Aug 22, 2018

Seeing as you did review of this code in #245, I’m going to close this one in favour of that PR and do it all in one go.

@alloy alloy closed this Aug 22, 2018
@alloy alloy deleted the graphql-include-variables branch September 3, 2018 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants