Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Can't add local state to introspection types #314

Open
dljcollette opened this issue Oct 13, 2018 · 0 comments
Open

Can't add local state to introspection types #314

dljcollette opened this issue Oct 13, 2018 · 0 comments

Comments

@dljcollette
Copy link

I'm trying to add local state to the typename __Type, which is part of GraphQL introspection. My local schema looks like this:

type __Type {
   isSelected: Boolean!
}

I've added the isSelected @client in my query and also return a default value from my resolver. However, I'm getting the following error when I make a query:

Missing field isSelected in {
  "__typename": "__Type",
  "kind": "OBJECT",
  ...
}

I'm aware that typenames starting with __ are reserved so my first guess is that I can't (and maybe even shouldn't want to) extend types with reserved typenames when using apollo-link-state, though the error message does not tell. Could somebody confirm this is actually the issue?

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

No branches or pull requests

2 participants