Tag: graphql
-
Error when Trying to Execute GraphQL Mutation with Micronaut and Kotlin
0 I am creating a microanuat and kotlin app using grapqhl but when trying with curl am getting an error which i have pasted below the code, am trying to figure wher i am going wrong import graphql.ExecutionInput import graphql.GraphQL import io.micronaut.http.annotation.Controller import io.micron " curl -X POST -H "Content-Type: application/json" -d ‘{ "query": "mutation…
-
Graphene Django – How to add extensions to the response object
0 It’s fairly common practice in GraphQL to return custom data on an extensions field (Facebook use this for image prefetch URLs for example). I am trying to do this in Graphene, and have made an attempt to do this in execute_graphql_request. class CustomGraphQLView(GraphQLView): def execute_graphql_request(self, request, *args, **kwargs): result = super().execute_graphql_request(request, *args, **kwargs) result.extensions[‘a’]…
-
GraphQL disposed DataContext
0 When trying GraphQL in the Playground, I get the following error: Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are…
-
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…
-
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…