Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Connection to the Express/Apollo Server fails from certain networks

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
13 views

Angular Graphql JWTToken Http Only

I want to use the standard approach from Apollo client to automatically get a refreshed token when I face an error related to authentication. I initially wanted to use the following approach: const ...
DanyBoy's user avatar
  • 21
0 votes
0 answers
31 views

useQuery with useEffect not causing infinite re-render

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
23 views

Are inline fragments recommended for GraphQL for native mobile app consumption?

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
31 views

setContext not setting the token call before API call when token expires

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
0 votes
0 answers
16 views

How do I invalidate all objects of a certain type at once?

In apollo-client, cache.modify() lets me invalidate individual objects by ID. However, I need to invalidate all objects of a certain type at once without knowing individual IDs or having a top-level ...
Dan's user avatar
  • 5,070
1 vote
0 answers
32 views

Unknown logs in registered persisted query

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
0 answers
36 views

request size did not match content length - GraphQL file Upload

I am using apollo client react UI "@apollo/client": "^3.8.1", "apollo-link": "^1.2.14", "apollo-upload-client": "^18.0.1" **NodeJs ** "...
BALAJI V S's user avatar
0 votes
1 answer
103 views

How to implement cursor based pagination when elements can be deleted, which can invalidate the stored cursor?

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,705
0 votes
3 answers
78 views

Is Apollo client polling 'long' or 'short'?

I can't see anything in the Apollo docs to suggest whether the Apollo client implements short or long polling - can someone please confirm(?)
JoeTidee's user avatar
  • 26.2k
0 votes
1 answer
44 views

After some requests it losts the cookies and gives GraphQL Error "Cannot read properties of undefined (reading '_id'). "

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
0 votes
1 answer
121 views

Pagination of Data with Apollo GraphQL and SSR NextJS pages

I am using Next.js v14, graphql, ApolloClient and ApolloGraphQL Experimental support for NextJS { "@apollo/client": "^3.12.0-rc.3", "@apollo/experimental-nextjs-app-...
randomuser5767124's user avatar
1 vote
0 answers
41 views

apollo-client-maven-plugin: How to flatten fragments in generated models

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
0 votes
0 answers
23 views

Has anyone got FilePond working with apollo-upload-client?

I use a GraphQL API and Next.js frontend and they're integrated with Apollo Upload Client. There's a section of my website where the user can upload files, and upon uploading each file I'd like an ...
Candace Wong's user avatar
0 votes
0 answers
26 views

How to handle multiple field updates in a form with GraphQL mutations in React?

I'm building a React form where I need to update multiple settings using GraphQL mutations. However, I want to optimize the process by calling the API only once to update all fields at once, instead ...
Md Mohosin Ali Shah's user avatar

15 30 50 per page
1
2 3 4 5
127