You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I create a Service using the Codegen wich returns me a GQL Query.
I use this to generate a QueryRef.
Wich I then subscribe to to get all until there are no more instances:
constquery=newMilestoneInstancesOfProjectGQL(this.apollo).watch({
projectId,});query.valueChanges.pipe(takeWhile(val=>val.data.milestoneInstances.pageInfo.hasNextPage===true,true)).subscribe(async({ data })=>{if(data.milestoneInstances.pageInfo.hasNextPage){query.fetchMore({variables: {
projectId,cursor: data.milestoneInstances.pageInfo.endCursor,},});}});returnquery;
When I check the Networks Tab in Chrome-Devtools I see it correctly triggering all HTTP Requests.
But when I check my cache using the Apollo Devtools it only contains a single MilestoneInstance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having troubles getting Relay-Style Pagination to work:
This is how I implemented my document:
Then I create a Service using the Codegen wich returns me a GQL Query.
I use this to generate a QueryRef.
Wich I then subscribe to to get all until there are no more instances:
The Cache is configured like this:
When I check the Networks Tab in Chrome-Devtools I see it correctly triggering all HTTP Requests.
But when I check my cache using the Apollo Devtools it only contains a single
MilestoneInstance
It looks like the merging doesnt work propperly.
Sincerely, Jan
Beta Was this translation helpful? Give feedback.
All reactions