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

Fix parsing of GraphQL fragments in editor views #98

Closed
execveat opened this issue Mar 29, 2023 · 1 comment
Closed

Fix parsing of GraphQL fragments in editor views #98

execveat opened this issue Mar 29, 2023 · 1 comment
Labels
Bug Something isn't working
Milestone

Comments

@execveat
Copy link
Contributor

Editor views don't handle GraphQL fragments well. They actually can get lost completely right now.

@execveat execveat added the Bug Something isn't working label Mar 29, 2023
@execveat execveat added this to the v5.0 milestone Mar 29, 2023
@execveat
Copy link
Contributor Author

This has been fixed along the way I guess. Tested by creating request in Repeater and pasting the following query to GraphQL tab:

fragment UserInfo on User {
  id
  name
  age
}

fragment AddressInfo on Address {
  street
  city
  country
}

query GetUser($id: ID!) {
  user(id: $id) {
    ...UserInfo
    address {
      ...AddressInfo
    }
  }
}

After that, go to Pretty/Raw and edit something - come back to GraphQL and observe that the query is fine. Tried playing with it but didn't find any parsing issues. I guess it got fixed by a random commit in GQLSpection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant