You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Is it possible to merge distributed schemas of the same type? For example, there is a type User which lived in a different services A, B, C and the goal is to merge the query results from every source.
Service A
type User {
id: String!
firstName: String
}
Service B
type User {
id: String!
relationshipStatus: RelationStatus!
hasChildren: Boolean!
}
Service C
type User {
id: String!
street: String!
}
and receive after merge
type User {
id: String!
firstName: String
relationshipStatus: RelationStatus!
hasChildren: Boolean!
street: String!
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Is it possible to merge distributed schemas of the same type? For example, there is a type User which lived in a different services A, B, C and the goal is to merge the query results from every source.
and receive after merge
This is possible with a similar to stitching https://github.com/ChilliCream/hotchocolate-examples/tree/master/misc/Stitching approach, but in this case User schema should be unique in every service in order not to be overridden during the mege.
I was wondering is there is another way for current scenario?
Beta Was this translation helpful? Give feedback.
All reactions