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

__typename-rels is not a valid inc parameter for the artist resource. #91

Open
martinbonnin opened this issue Mar 10, 2021 · 0 comments

Comments

@martinbonnin
Copy link

The below query

query Artist {
  node(id: "QXJ0aXN0OjMyM2VkOTc0LThiZjYtNGY1NC05NTI1LWI3NzRhNjU5ZjgwNQ==") {
    ... on Artist {
      relationships {
        __typename
      }
    }
  }
}

when used on https://graphbrainz.herokuapp.com/ fails with

{
  "errors": [
    {
      "message": "__typename-rels is not a valid inc parameter for the artist resource.",
      "locations": [
        {
          "line": 4,
          "column": 7
        }
      ],
      "path": [
        "node",
        "relationships"
      ]
    }
  ],
  "data": {
    "node": {
      "relationships": null
    }
  }
}

The problem seems to come from the __typename meta-field that is not correctly understood: https://spec.graphql.org/draft/#sec-Type-Name-Introspection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant