Skip to content

[server] - Add GraphQL Subscription Layer for Live Marketplace Updates #116

Description

@dark-sarge

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.
  • A Query type exposes: trades(status, assetType, page, limit) and trade(id).
  • A Subscription type exposes: tradeCreated (emits when a new listing is posted) and tradeStatusChanged(tradeId) (emits when a specific trade's status updates).
  • Subscriptions use WebSocket transport (graphql-ws protocol).
  • The REST API is kept intact — GraphQL is additive, not a replacement.
  • The frontend marketplace page optionally subscribes to tradeCreated and appends new cards to the grid in real time without a full page refresh.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions