-
Notifications
You must be signed in to change notification settings - Fork 17
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
__typename must be const #122
Comments
@captbaritone can i take this ?? what all other things needs to in mind while doing this . ??? |
@Rash-Hit Sorry I missed your message! I think all we need to do here is update the code here to expect an "AsExpression" with an expression that is the expected string literal and a type that is Then you should be sure to update/add test fixtures showing the "happy" path as well as demonstrating exactly what the error messages look like. You can read more here: https://github.com/captbaritone/grats/blob/2f7323fb43a31ed1895b394bbdbc01fba583cc0c/CONTRIBUTING.md#automated-tests |
@Rash-Hit Following up here. Are you still interested in working on this? No worries if not. |
i am really sorry @captbaritone , is this something we need to do ?? |
@Rash-Hit Yeah, that looks about right. We probably also need to check that it's |
Closed in #137 |
Currently we allow this, but it's not technically safe since the
__typename
could be mutated.We should require either:
or
The text was updated successfully, but these errors were encountered: