Unknown field "__token" when using @fetchable
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
https://relay.dev/docs/next/guided-tour/refetching/refetching-fragments-with-different-data/ mentions the ability to use @fetchable for refetchable fragments rather than needing to implement the Node type. I followed a guide (https://dev.to/marais/fetchable-with-relay-1meb) to doing this, but ran into an issue with `"__token"` not being defined for my @fetchable type. I tried adding a custom handler for this directive on my backend (apollo server), but it wouldn't let me override a field prefixed with `"__"` (internal field).
Is better support for this on the way, or is this just deprecated / unsupported externally? It would be much nicer if I could avoid bloating my `Query.node` field with every single type
Contributor guide
Assessment
This issue has not been assessed yet.