16 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
59
views
Authentication for graphql subscriptions does not work with @Authenticated
I am using Quarkus 3.27.0 and trying to secure GraphQL subscriptions with the @Authenticated annotation. I pass the Authorization header with a valid token when connecting, but the subscription ...
0
votes
0
answers
70
views
Secure a Quarkus GraphQL @Subscription endpoint
How can I secure a Quarkus GraphQL @Subscription endpoint using Quarkus security mechanisms (e.g. using the @Authenticated annotation, the same way we would do it on a @Query)?
Our Angular frontend ...
0
votes
1
answer
75
views
I need to call the graphql-ws createClient event from react component is there any way to do so?
I'm trying to call the graphq-ws createClient exposed "on" Event from react component
Let's say I have to call some function api call when user gets disconnect or gets connected
const ...
0
votes
2
answers
707
views
NestJS GraphQL Unable to Authenticate GraphQL subscription with graphql-ws and apollo client
I am using Nestjs API with @nestjs/graphql.
On a Next.js front I am trying to subscribe to an authenticated GraphQL subscription, it works with WebSocketLink but not GraphQLWsLink.
My resolver is
@...
0
votes
0
answers
297
views
Difficulty in Setting Cookies on Server Side with Apollo Server v4, Express, and Next.js
I'm encountering an issue with setting cookies on the server side of my project, which involves Apollo Server, Express, and Next.js. Despite the server-side code executing without errors, the cookies ...
0
votes
1
answer
1k
views
Reconnecting graphql subscription
I am using apollo client and graphql-ws library for subscription.
I have the following requirement. Server redeploys every morning and that time the existing subscription gets completed. I need to ...
1
vote
1
answer
1k
views
Cannot read properties of undefined (reading 'FIELD') when bumping @apollo/client to 3.8.x
I have a particular feature where I require to implement a second graphql client (using @apollo/client) that uses the old ws protocol for subscriptions - the other graphql client uses the latest one.
...
1
vote
1
answer
787
views
How to add authorization headers to HTTP upgrade messages when using Subscriptions over websockets in a NODEJS Application?
I have a NODE application that also acts as a GraphQL client.
I need to fetch the data from a GraphQL server using SUBSCRIPTION requests.
The GraphQL server validates the incoming HTTP upgrade message ...
1
vote
1
answer
342
views
pass pubsub into context in graphql subscription
I'm struggling with this all day long, I want to implement subscriptions feature on my mongodb-express-graphql-nextjs project. I can't use context.pubsub in resolver. Am I missing something? please ...
0
votes
1
answer
500
views
I'm trying to use apollo graphql subscriptions with my react-native app. Works fine on android but on iOS there is no response
Here is my graphqlClient.ts file:
import {
ApolloClient,
HttpLink,
ApolloLink,
InMemoryCache,
concat,
Operation,
NextLink,
FetchResult,
Observable,
split,
} from '@apollo/client';
...
1
vote
0
answers
459
views
How to authenticate graphql subscription into nestjs?
I need to apply authentication in graphql subscription. I find the documentation and from the documentation -
@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
ScheduleModule....
0
votes
1
answer
763
views
graphql-ws createClient throws WebSocket implementation missing
I have a nextjs(client side) project,
I followed this to subscribe to my graphql subscription but I got
"WebSocket implementation missing; on Node you can import WebSocket from 'ws'; and pass ...
1
vote
0
answers
247
views
GraphQL useSubscription is not working with graphql-js in NextJS
I am trying to implement Websocket using apollo client GraphQLWsLink. Which is not at emitting the data. However the Websocket connect is alive only. What I observed from the network tab is the query ...
0
votes
1
answer
274
views
How to fix "Firefox can’t establish a connection to the server at wss://example.domain/subscription" issue?
This is how I have setup app.js:
/**
* Importing Packages
*/
require("dotenv").config({ path: `./env/.env-${process.env.NODE_ENV}` });
const express = ...
3
votes
1
answer
565
views
cannot connect graphql-ws to gqlgen
I'm using gqlgen for my service and apollo client and graphql-ws for my front end and I'm trying to use a subscription and it perfectly works in my playground but when i try to connect the client to ...