Skip to content
Discussion options

You must be logged in to vote

Just an update on this. I believe I have now got this working. The issue appears to be that Apollo now includes an operationType prop on the operation passed to the request, which then gets rejected by the server. This means you can't prop spread the operation to the SSE link and instead have to destructure it to ensure you only pass known/valid props.

The working code for the link is now:

apollo-sse.ts

import {
    ApolloLink,
    Observable,
} from '@apollo/client';
import { print, type FormattedExecutionResult } from 'graphql';
import { type Client, type Sink } from 'graphql-sse';

export class GraphQLSSELink extends ApolloLink {
    constructor (public readonly client: Client) {
        

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mbiggs-gresham
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #118 on September 05, 2025 12:15.