-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adding sendVariableValues and sendHeaders parameters and specifications to engine #2847
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1ebc472
- changed name of the new option (from enforcePrivateVariables to mas…
862017e
Changed new option to sendVariableValues instead of maskVariableValue…
896c311
adding new reporting option sendHeaders, fixing some names
8f9bbaf
addressing comments, name/argument changes, updating docs, adding and…
09946ae
adding another parameter for specifying safelisted variable names
cf1c21d
more doc fixes, adding some checks for invalid inputs
db9c49f
changed suboption name, updating docs with more info on breaking change
8636c3e
Merge branch 'master' into EnforcingPrivateVariables
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think to @glasser's point in #2472 (comment), we could give guidance to users on how to migrate to the new API without it being a breaking change if they're using the defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think Adam's right: this should explicitly say that this is a breaking change only if you don't currently specify
privateVariables
at all, and to preserve the old default, you'll want to passnew ApolloServer({engine: {sendVariableValues: {sendAll: true}}})
. (I do think it's good to put it in the context ofnew ApolloServer
since that's where people will actually write it.)Hmm, is it odd that the top option name starts with
send
and some but not all of the sub-option names do? Should they beall
andnone
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the CHANGELOG to be more specific! Do you think it would be worth noting this in the docs specific to the deprecated options (
privateVariables
,privateHeaders
) as well?I think since the new option names already begin with
send...
, that the suboptionsall
andnone
should be clear enough. Will also make that change!