On Subscription Callback is not coming when mutation query executed. #7387
Unanswered
vikrantgunjal
asked this question in
Question
Replies: 1 comment
-
Are you able to see the response on the websocket connection whenever new data comes in? I would start debugging by looking at where the problem is, either the server doesn't return the response, in which case the query needs to be looked at. If server seems to return a response (can be checked via network calls), then it could be a client side issue. On a side note, it is not recommended to expose |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am facing a issue while implementing subscription, the callback is not coming with newly added data when mutation is happend.
Note : I am implementing this into c# core
NuGet Packages Installed ->
GraphQL
GraphQL.client
GraphQL.Client.Serializer.Newtonsoft
GraphQL.SystemReactive
Code attached -
using System;
using GraphQL;
using GraphQL.Types;
using GraphQL.Client.Abstractions;
using GraphQL.Client.Http;
using GraphQL.Client.Serializer.Newtonsoft;
namespace GraphQLSubs
{
class Program
{
static void Main(string[] args)
{
try
{
var graphQLClient = new GraphQLHttpClient("https://--Link---.hasura.app/v1/graphql", new NewtonsoftJsonSerializer());
graphQLClient.HttpClient.DefaultRequestHeaders.Add("x-hasura-admin-secret", "---secret----");
}
This code works perfectly fine with own graphql server, but not working in hasura graphql
Please help me with this where do i go wrong???
Beta Was this translation helpful? Give feedback.
All reactions