Location: server/src/graphql/
Description
The current SSE approach covers authenticated per-user events well, but public marketplace data (new listings appearing, listings selling out) benefits from a more flexible subscription model. A GraphQL layer with subscriptions would enable the frontend to subscribe to live listing updates without polling.
Acceptance Criteria
Location:
server/src/graphql/Description
The current SSE approach covers authenticated per-user events well, but public marketplace data (new listings appearing, listings selling out) benefits from a more flexible subscription model. A GraphQL layer with subscriptions would enable the frontend to subscribe to live listing updates without polling.
Acceptance Criteria
graphql-yoga(or Apollo Server) is added to the server and mounted at/graphql.Querytype exposes:trades(status, assetType, page, limit)andtrade(id).Subscriptiontype exposes:tradeCreated(emits when a new listing is posted) andtradeStatusChanged(tradeId)(emits when a specific trade's status updates).graphql-wsprotocol).tradeCreatedand appends new cards to the grid in real time without a full page refresh.