Circular references in fragments


It seems that requests with circular references in fragments fail abruptly, instead of returning a validation error. See the “No fragment cycles” validation rule.


Hiya! Would you mind posting a query that demonstrates this?


Sure, here’s an example:

    ... on User {

fragment f1 on User {
  followers(first: 10){
    edges {
      node {
        ... f1

GraphiQL will highlight the error, but the query is still runnable and returns HTML that contains the following string: “Something, somewhere, has gone horribly, horribly wrong.”


Oh dang. I’ve logged an internal issue for this. Thanks!


…and by “internal issue” I of course mean “an issue in the open source gem:laughing:.


Thanks! This is now fixed!