Questions tagged [apollo]
Apollo is a GraphQL client and cache for JavaScript, iOS (Swift) and Android.
apollo
4,591
questions
1
vote
0
answers
16
views
Apollo client completely disable caching, or fix caching issue
So we have this problem with Apollo client. Our stack if following: PayloadCMS graphQL API and Next.js 14 with Apollo client.
The problem is following when data are changed on the PayloadCMS, the Next ...
0
votes
0
answers
9
views
Missing generation from graphql-codegen for Upload
The following is the nestjs and react native related code. I expect it will generate useGetNumbersQuery, but it only generate the QueryDocument.
nestjs
"graphql-upload": "^15.0.0",
...
0
votes
0
answers
12
views
Reissuing an accesstoken using a refresh token in react, apollor graphql
This is a query statement that retrieves user information. If error 401 occurs here
import { ApolloError, gql, useQuery } from '@apollo/client';
interface IUserInfo {
fetchUser: {
picture: ...
0
votes
1
answer
31
views
Two NextJS applications in separate repositories under one backend
I have two NextJS applications under separate repositories and different domains.
I want the second NextJS application to fetch the first NextJS application's backend code. Backend is graphql + apollo....
0
votes
0
answers
14
views
How should I use Nuxt Apollo outside of vue component or script setup to create repository for API calls?
I'm not a software engineer or nothing close to it and I'm in the process of learning to create a web app.
I'm playing with a NUXT app and Graphql, in which I'm trying to call a NESTjs API from ...
0
votes
1
answer
30
views
Struggling with mapping a nested Apollo query result to another value
I have a use case in Angular Apollo that looks something like:
eval(someId: number): Observable<string | Error> {
return this.apollo.query<FirstQuery>({
query: FirstDocument,
...
0
votes
0
answers
24
views
How to Implement GraphQLQueryPager in Apollo iOS for Pagination?
I'm currently working on implementing pagination in my iOS application using Apollo for GraphQL queries. I came across the Apollo iOS documentation on pagination, which mentions a GraphQLQueryPager ...
0
votes
2
answers
30
views
Server-to-Server Apollo Queries & Mutations with Apollo 4
I'm having a hard time making Apollo mutations from server to server.
I've spent quite a while today looking around for examples or suggestions on best practice for passing data between two API's that ...
1
vote
0
answers
19
views
Apollo Router Coprocessor issue: context propagation impossible for Java POJO
I am currently writing a Java coprocessor for the enterprise version of Apollo Router. I need it to propagate values from the RouterRequest stage, all the way to the RouterResponse stage.
I had ...
1
vote
1
answer
29
views
Error in Angular components shows loading and not loading using if-else
im learning angular 18 SSR. I have a render problem when i load data from a graphql service; the load elements (skeletons) are showed using the value loading from a signal converted from a service ...
0
votes
0
answers
37
views
How to infer parameter types for a wrapping function in Typescript
I need to wrap functions and pass in the wrapped-functions' arguments as parameters in the wrapping-functions. Rather than create interfaces for arguments for each instance of wrapped functions, I was ...
0
votes
0
answers
50
views
Apparent cors error in apollo-angular and .NET with Azure function
I'm developing my first Angular v18 client app consuming an Azure function app with GraphQL (hotchocolate).
I have a problem with apollo apparently, when I try to consume the service, in the console....
-1
votes
0
answers
23
views
NextJS apollo onError - refresh and set new access cookie not applied and used in retry requests
First time posting here, so let me know if you need more information. Couldn't figure out how to format the code so included it in a gist.
What would like to be achieved
When the access_token cookie ...
-1
votes
0
answers
26
views
Using enqueue seems to perform the queries one after another
I have a Java app and I am using Apollo Plugin
plugins {
id 'com.apollographql.apollo' version '2.5.6'
}
I want to send 4 queries.
I want Apollo Client to send them all together, without waiting ...
0
votes
0
answers
38
views
How do build a top component wrapper in next.js?
So I'm getting this error: Invariant Violation: Could not find "client" in the context or passed in as an option
And the reason is because my component is not wrapped in ApolloProvider
So ...