I think Apollo Federation is for that: https://www.apollographql.com/docs/federation/
Worth watching some youtube tutorial videos. Here's one I watched recently (~26mins): https://www.youtube.com/watch?v=v_1bn2sHdk4
Re:GraphQL kinda sucks
by gabereiser on Saturday August 06, 2022 @04:20PM
(#32371240)
Not everything is a graphql api
Re:GraphQL kinda sucks
by soccersofia15 on Saturday August 06, 2022 @12:46PM
(#32369608)
Same! We’ve been using WunderGraph to help with schema stitching and integrating other data sources
I used graphql at one place and our stitching was a disaster. I'm thinking bad decision.
We also had micro services. It was the most unstable backend I've ever worked with.
Yet the architects who picked all these techs were mostly lauded and didn't stick around to deal with the mess.
Turns out, if you have lots of objects from disparate sources, graphql don’t like that. Now you must stitch these schemas together into an über schema roll query and use with graphql. Maybe we missed a step. Maybe we misunderstood. Maybe it was a bad decision.