GraphQL Subgraph
EasyManage GraphQL APIs serve as subgraphs, when building a federated architecture and composing a supergraph.
EasyManage GraphQL APIs as Subgraph
Below are some Subgraph examples
User Subgraph : From MySQL database e.g. EasyManage GraphQL API endpoint http://hostname:9070/graphql
type User {
userId: ID!
userName: String!
}
Product Subgraph : From Oracle database e.g. EasyManage GraphQL API endpoint http://hostname:9060/graphql
type Product {
productId: String!
productName: String!
productQuantity: Int!
}
Supergraph Schema : that combines these subgraph schemas
type User {
userId: ID!
userName: String!
}
type Product {
productId: String!
productName: String!
productQuantity: Int!
}