Tag: graphql
-
View pre-deserialized response from GraphQL query
1 I have a simple GraphQL query that I’m making out to a server, and trying to use GraphQL.Client.Serializer.Newtonsoft to deserialize it. I’m getting a response, but the response does not make the NewtonsoftJsonSerializer happy. It complains: This converter can only parse when the root element is a JSON Object. Okay, fair enough. The response…
-
How to implement In memory cache from angular front with graphql Queries?
0 I have angular frontend application, we are fetching data with graphql queries using apollo client. We want to implements caching to fetch the data. Only first time we need to query the data and it should stored in cache , while calling the same next time the data should be returned from the cache.…
-
GraphQL Schema Caching or Optimization Ideas
0 GraphQLSchema object will be used to process graphQL request. This object can be generated once and could be reused multiple times until any meta changes occurs. But my question is how can I cache this object directly in my JVM, since its size is huge (around 17MB 😳). According to my application, I need…
-
github graphQL api – how to retrieve issue’s project items?
0 I am new to github graphQL API and I have been scrambling for a solution to the following problem, using github Entreprise Cloud: I have a repo "myRepo" containing an issue "myIssue" issue "myIssue" is added to a projectV2 "myProject", which is defined at organization level (not in a repo) project "myProject" contains a…
-
How to resolve union in Azure APIM synthetic GraphQL
0 We are kind of experimenting with synthetic GraphQL in Azure APIM, using resolver policies. Up until now everything was working fine, but we want to introduce unions and so far no matter what and how we tried, we couldn’t make the resolver work. Unfortunately we could find no usable documentation or tutorial/posts/etc on the…
-
GraphQL Codegen isn’t generating types from the in-line fragments
-1 I am using Apollo Client 3 and GraphQL Codegen. I have the following query: query Page($path: String!) { page(path: $path) { id content { …on PageOne { id description } …on PageTwo { id title } } } } My codegen config file: // codegen.ts import type { CodegenConfig } from ‘@graphql-codegen/cli’; const config:…
-
Apollo Graphql with Angular with headers not being passed
0 I need to add headers to my graphql requests with angular, but I didn’t find any way. Headers is added when I use query but not mutate. Also, mutate will works if I didn’t add headers. Here is my code: import { APP_INITIALIZER, NgModule } from ‘@angular/core’; import { AppComponent } from ‘./app.component’; import…
-
Failed to fetch error – ReactJS + GraphQL [closed]
-2 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 hour ago. Improve this question We get "Failed to fetch" error when…
-
GraphQL – Apollo Client without using hooks?
11 I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be exposed to the user. For instance, on my sign up page, I want to create…