GraphQL Demo
A hands-on tour of the GraphQL service: an HTTP query, an HTTP mutation, and a WebSocket subscription that connects directly to graphql-service (not proxied through the gateway).
1. Query — products with related products
Fetches the first 5 products and their same-category relatedProducts, demonstrating a genuinely recursive GraphQL resolver.
Query sent over the wire
query Products($limit: Int) {
products(limit: $limit) {
data {
id
name
priceCents
category
relatedProducts {
id
name
}
}
meta {
total
}
}
}Loading products...
2. Mutation — cancel an order
Fetches your own orders via the orders query, then invokes the cancelOrder mutation on the one you pick.
Log in to try this section.
3. Subscription — live order status
This is backed by real RabbitMQ events, not a mock — trigger a payment or cancellation on this order from another tab/terminal to see a live update appear here.
Log in to try this section.