mswjs / mswjs/msw

Support GraphQL subscriptions

Open
#285 6 comments 57 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
18.2k
Forks
626
Avg merge
2h 10m
Merged PRs (30d)
11

Description

What

I suggest to add support for GraphQL subscriptions (example tutorial from Apollo).

Why

To support all three main GraphQL operations: query, mutation, and subscription.

How

  1. Research what this new feature would imply technically.
  2. Design and discuss a public API of the library for GraphQL subscriptions.
  3. Implement, document, and release.

Technical notes

  • GraphQL subscriptions are often implemented via WebSockets. There is a WebSockets support feature request open, which may be a pre-requisite for this task.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by researching GraphQL subscriptions and the open WebSockets support request in #156, since WebSockets may be a prerequisite. Define and discuss the library's public subscription API, then determine the implementation, documentation, and release work needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.