Skip to content

Returning null for an entity without extensions error property #1171

Answered by hayes
cameronmakarchuk asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is just how Federation works, your User graph is returning an Address not null, so at that point the router thinks the User has an address, and failing to load it is an Error.

The way to avoid this is to invert the relation and move the User.address field to the Address sub-graph

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@hayes
Comment options

hayes Mar 5, 2024
Maintainer

Answer selected by cameronmakarchuk
@cameronmakarchuk
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants