Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
0 replies
15 views

I’m trying to find an effective way to introduce newly created “second class” objects into the InMemoryCache. By “second class”, I mean objects that depend on a parent object. When I’m creating these ...
gboysko's user avatar
  • 31
0 votes
1 answer
66 views

I have a problem with migrating from Apollo client v3 to v4 and i get this error Warning: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite ...
Ahmed Elselly's user avatar
1 vote
1 answer
202 views

I’m using Apollo Client v4 (4.0.5) with Next.js App Router and GraphQL Code Generator (typescript-react-apollo) to generate TypeScript types and hooks for my GraphQL API. Everything was working fine ...
kslmn's user avatar
  • 11
0 votes
1 answer
78 views

I’m using graphql-codegen with apollo-client. Everything works great except one thing: I tried to update cache after mutation, the update function of client.mutate doesn’t have typings for the cache ...
musketeerdt's user avatar
2 votes
1 answer
191 views

I recently started using Apollo Fragments for the first time to synchronize parts of schemas between queries and mutations instead of manually keeping those schemas synchronized. However, now ...
mrbinky3000's user avatar
  • 4,391
1 vote
1 answer
145 views

The following line works fine in the browser and in Bun: import { ApolloProvider } from "@apollo/client"; but when I run it in SSR (inside Tanstack Start / Vite / Vinxi) I get an error ...
Michael Lorton's user avatar
0 votes
0 answers
57 views

I have a React frontend using Apollo Client to interact with a backend GraphQL server. The GraphQL server is a Node.js application utilizing Express and Apollo Server, and it communicates with ...
Tomáš Soukup's user avatar
0 votes
0 answers
42 views

I have below code snippet: const [state, setState] = useState(null); {data, loading, error} = useQuery(SOME_QUERY, {fetchPolicy: 'no-cache'}); useEffect(() => { setState(data) }, [data]); This ...
Mrityu's user avatar
  • 496
0 votes
0 answers
30 views

New to GraphQL. Working on designing integration for native mobile app (kotlin/swift). Planning to use Apollo GraphQL Architecture: native app(app) -> graphQL server (server) -> REST endpoint (...
James's user avatar
  • 1
0 votes
1 answer
37 views

Token API should get called before the GraphQL API but it's being called at the same time I am fetching the headers inside setContext Inside commonAuthHeaders I am calling the API to get refresh token ...
Nischal Singh's user avatar
1 vote
1 answer
73 views

First, I call useGetData with parameters that include filters for test1 and test2 (this is correct). The data is fetched and stored in the cache. Then, I disable the test2 filter and make a new ...
lukasmaska98's user avatar
1 vote
0 answers
14 views

I want to throw a custom exception from the my reactive spring-boot backend to the browser front end over graphql apollo. I want to front end browser to know about the specific information in this ...
Oliver Watkins's user avatar
1 vote
0 answers
42 views

I am trying to implement registered persisted query. when i am running a query which is not there in my PQL, with apq as enabled it is logging the query in router logs with error code “...
varun sharma's user avatar
0 votes
1 answer
85 views

I am trying to run the useLazyQuery in my vue to get data from Apollo client. I am passing the parameter and query return different results based on the parameter being passed. My issue is that result ...
Arun Kumar's user avatar
0 votes
1 answer
226 views

I have a GraphQL query which looks like so query Person($cursor: ID, $limit: Int) { items:{ ... } name ... cursor } While making the query for the next page, I fetch using the returned ...
dumbPotato21's user avatar
  • 5,703
0 votes
1 answer
52 views

I am using Query and resolver for fetching the articles data. In one request it fetches the 15 records. Fetching data limit is 15. After some request it lost the user Info/cookies an gives error ...
Priya Kumari's user avatar
1 vote
0 answers
63 views

I'm using the apollo-client-maven-plugin version 7.1.0, and I'm trying to flatten fragments in my response models, but I'm encountering an issue where the fragments are wrapped in a nested object. ...
Denis Cucchietti's user avatar
1 vote
1 answer
698 views

When we build nextJs yarn build when it goes to the step Generating static pages we have this error: Error occurred prerendering page "/partners/partner-with-us". Read more: https://nextjs....
Alan's user avatar
  • 10.3k
3 votes
1 answer
1k views

I'm using Strapi as a headless CMS with the Draft & Publish feature enabled, and I'm querying the data using GraphQL in my project. The problem I'm facing is with filtering drafted and published ...
david's user avatar
  • 87
0 votes
1 answer
430 views

I have the below component -LocationStats- running a suspense query. The query causes non stop re-renders. I can see it sends a query to the server, and the minute it gets a response, it launches the ...
kfc's user avatar
  • 323
0 votes
1 answer
45 views

I have a mutation that adds a todo to a list of todos. mutation AddTodo($data: AddTodoInput!) { addTodoToList(data: $data) { id todos{ ...
William Neely's user avatar
0 votes
1 answer
207 views

I have created a Rest API application in Typescript, using NestJS and querying a GraphQL server using Apollo Client. I currently have my queries hard-coded like this: const query = "query { ...
Matheus Maximo's user avatar
1 vote
1 answer
42 views

I am trying to fetch menu items from WordPress through Apollo client, but my getStaticProps function never gets called. Here is what I currently have as my setup: Navbar.jsx src/components/Navbar ...
Steve Gaita's user avatar
0 votes
2 answers
186 views

I want to set auth in req header to specific value but after I tried different methods and check req from browser my key is not in the req header I am using Reactjs ,vite ,@apollo/client and running ...
mohamed nageh's user avatar
-1 votes
1 answer
94 views

I took over a Craft CMS project, which I successfully upgraded to the latest version of Craft 5. When I run the command needed to build the JS and CSS files npm run dev I get the following error: ...
cjhdev82's user avatar

1
2 3 4 5
68