-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Provide possibility to mask the __typename in client results #533
Conversation
🦋 Changeset is good to goLatest commit: f14497b We got this. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e9112f1:
|
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.
Doesn't it conceptually make more sense to be able to use stripTypename
on variables
?
So to me it makes sense being able to use it on the response for your query since we implicitly add |
@JoviDeCroock That's true. What I'm unsure of is that we basically have an asymmetry already:
So I'm not sure whether the place where we're applying this makes sense? |
The main point you are hinting at is to keep it exclusively to |
The implication of these changes would be that it's impossible to useQuery to fetch __typename as a part of the original query? That seems harmful. |
No, we've always implicitly added |
|
What this PR doesn't include yet is that this should and will only be enabled when an option on the client is enabled, e.g. |
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
6f173b3
to
fda2582
Compare
Co-Authored-By: Phil Plückthun <phil@kitten.sh>
|
Summary
It solves problems where you don't want to manually strip in variables/useQuery result before sending it off somewhere
Set of changes