Questions

  • System.Text.Json Deserialize doesn’t work for a GraphQL response

    0 I am working on a .NET 6 application using GraphQL and System.Text.Json. For the a shared util function: public async Task<GraphQlResponse<T>> Query<T>(string mutation, IQueryInput variables = null) { var content = JsonSerializer.Serialize(new { query = mutation, variables = (object) variables }); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri(baseUrl), […]

  • GraphQL mutate operation failed. NonRetryableException{message=OkHttp client request failed., cause=null, recoverySuggestion=Irrecoverable error}

    2 Graphql mutation operation fails in android but works in AppSync console Error: GraphQL mutate operation failed E/amplify:flutter:api( 4899): NonRetryableException{message=OkHttp client request failed., cause=null, recoverySuggestion=Irrecoverable error} E/amplify:flutter:api( 4899): at com.amplifyframework.api.aws.AppSyncGraphQLOperation$OkHttpCallback.onResponse(AppSyncGraphQLOperation.java:145) E/amplify:flutter:api( 4899): at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) E/amplify:flutter:api( 4899): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/amplify:flutter:api( 4899): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/amplify:flutter:api( 4899): at java.lang.Thread.run(Thread.java:920) W/AtomicResult(mutate)( 4899): Attempted to send success value after initial […]

  • Why are `1…2` and `1….2` not syntax errors?

    6 use 5.016; use warnings "all"; use Data::Dumper; my @abc = (1, 2, 3); my @bbb = @abc[1..2]; my @ccc = @abc[1…2]; my @ddd = @abc[1….2]; say Dumper "@bbb"; # output: ‘2 3’ say Dumper "@ccc"; # output: ‘2 3’ say Dumper "@ddd"; # output: ” Why is there no syntax error in code above? […]

  • All GraphQL SDL schema fields shown as depreciated in GraphQL-Voyager regardless if they actually are

    0 I’m trying to check my GraphQL Schema created in SDL using "GraphQL-Voyager", but it always shows all fields are "DEPRECATED" even when none of them are declared as deprecated. For an example, the following simple schema would encounter the issue: schema { query: Query } type Query { get_CONTACTS( id: ID! ): CONTACTS } […]

  • Do I need to close client stub after every request?

    0 I am using dgraph-js and have an app.ts file which holds all the services variables such like the client stub export const dgraphStub = dgraph.clientStubFromCloudEndpoint( process.env.DGRAPH_URI!, process.env.DGRAPH_KEY! ); export const dgraphClient = new dgraph.DgraphClient(dgraphStub); dgraphClient.setDebugMode(true); Now when I do something in dgraph like below async function GetComment(commentId: string): Promise<IComment> { const txn = dgraphClient.newTxn({ […]

  • Facebook groupsApi & group_access_member_info problem

    0 I have a public Facebook group and I am trying to get the posts and the author of the post via graphql. My app has been approved by Facebook and I have installed it in my group. Also, it is live My problem is that when I send a get request I can see […]

  • TypeError: graphql.e is not a function

    0 enter image description here I’m trying to add wallet connect provider to my project but after so many tries stuck at one of this error which is not getting by me. Project’s discription: node version: 14.18.3 next: 9 typescript: 5 webpack: 4 I have custom webpack also where i added more loaders. below code […]

  • How to delete an object by pressing a button with onClick via mutation

    0 There is code with GraphQL in bff and in the application part. This function is described as follows: shema.js: type Mutation { deleteCart(id: Int): [Cart] } index.js: deleteCart: (_, args) => { carts = carts.filter((c) => c.id !== args.id); return carts; } As declared in query: export const CART_ITEMS = gql` mutation DeleteCart ($id: […]

  • Custom filters doesn’t apply for GraphQL collection query in API Platform

    0 I’m using API Platform and I want to add graphQL support and keep the same behavior between my REST calls and my graphQL calls. I have some custom filters for my get collection that works fine with REST, but they are not recognized in graphQL. According to the doc, I’ve added the following so […]

  • FetchError: invalid json response body GraphQL

    0 I’m using @apollo/datasource-rest to wrap a 3rd party API. The endpoint I’m trying to hit checks if an email is already in use or not. If the email is in use the response looks like this "body": "True", "statusCode": 200, "contentType": "application/json", If the email is not in use the api returns a 404 […]