Question about Federation and Relay IDs #3177
Replies: 3 comments 6 replies
-
hi @dusty-phillips, I'd consider this a bug (or missing feature) on our side, I think we should allow Node to use I'm not sure if there's a good way to work around this on the Router, maybe you could replace all usage of GlobalID with ID, but not sure if that would work well in all cases :) |
Beta Was this translation helpful? Give feedback.
-
The next problem I've encountered in trying to federate graphene with strawberry has to do with the relay integrations. If I try to add a connection to both graphene and strawberry, I get the following errors from Rover:
I expect this to be a recurring theme for common types that are defined internally by both graphene and strawberry. First I haven't tested yet, but one solution is to mark the relay fields as shareable in the EDIT: Trying to depend on strawberry-federation from inside relay results in a circular import, suggesting that my concerns are valid. |
Beta Was this translation helpful? Give feedback.
-
@dusty-phillips @patrick91 any updates on this? I am attempting to do the exact same thing (use federation + relay together) and running into this issue. Is forking and patching the best approach for now? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to federate a new strawberry service with an existing graphene service using Apollo Router. Everything was working (surprisingly) well until I through Relay into the mix.
Graphene's Relay defines the interface
Node.id
as typeID!
, but strawberry defines it as typeGlobalID!
. This is causing the following error when I try to stitch the two schemas with rover:The sources for
relay.types.GlobalID
say:So it sounds like these really are two different types, but it is unclear to me what the Federation mechanism expects or how to resolve the discrepancy, given that my code doesn't control the Node Interface in either service. Are there any more experienced Federation users out there able to give me some advice?
Beta Was this translation helpful? Give feedback.
All reactions