Questions tagged [graphql-subscriptions]

GraphQL subscriptions are a way to push data from the server to the clients that choose to listen to real time messages from the server.

In addition to fetching data using queries and modifying data using mutations, the GraphQL spec supports a third operation type, called subscription.

Subscriptions in GraphQL and Relay

Subscriptions in GraphQL and Apollo

280 questions
0
votes
1 answer

GraphQL subscription: How to update object based on the event in subscription

I am trying to update the users' password that I have retrieved previously when an event is published to the PasswordUpdated Channel. This is what I have tried so far, this.apollo.subscribe({ query:…
Anthony C
  • 2,117
  • 2
  • 15
  • 26
0
votes
1 answer

GraphQL-subscriptions: How to get published object in subscription resolver

I am using an express server with GraphQL subscriptions and subscriptions-transport-ws. I have set up the subscription with a given channel: ... const subscriptionManager = new SubscriptionManager({ schema: executableSchema, pubsub:…
Locco0_0
  • 3,420
  • 5
  • 30
  • 42
0
votes
1 answer

Refetch query in apollo client

So I'm trying to build a small search app. The problem I'm encountering is that I can't refetch the query when the state of text input changes. here's the code getInitialState: function(){ return { searchParams: '' " } }, render: function(){ …
0
votes
1 answer

How can I connect to the apollo graphql-websocket in another programming language?

Currently I am looking into GraphQL Server from Apollo, to replace our current Java implementation. As we also might want to use subscriptions, I try to get some simple server-client proof of concept up and running. I got the subscription part…
-1
votes
1 answer

Apollo | How to Notify Subscription From Server?

How do I notify the subscribed clients of the new change of the database (Mongodb) from Node.js App ? I know it works when a client commit a mutation, but is there a way to do it on the server?
Bright Chip
  • 31
  • 1
  • 4
-1
votes
1 answer

Apollo Subscription using "apollo-server-azure-functions"

I am using "apollo-server-azure-functions" npm package using this can we implement graphql subscriptions. I checked above npm package repos in the github but i did not find option for Subscriptions
mathad
  • 171
  • 1
  • 6
-1
votes
1 answer

Why does my data disappear when a subscription goes through?

Why am I getting undefined for data when the subscription goes through? I am trying to figure out where the undefined for my props.data.allLocations is coming from. Any help would be appreciated. //Higher order component export const LocationList =…
Joseph Barnes
  • 620
  • 5
  • 10
1 2 3
18
19