Skip to main content

cards query does not return endCursor

  • November 20, 2021
  • 7 replies
  • 175 views

moacyr-baptista

Hi everyone.

 

cards query does not return endCursor or the startCursor. Because that I cant paginate my search.

 

payload

{ cards(pipe_id: xxx, search: { label_ids: xxxx }) { edges { node { id title } } pageInfo { endCursor startCursor hasNextPage } } }'

 

return:

'pageInfo': {'endCursor': 'MA', 'startCursor': 'MA', 'hasNextPage': True}

 

7 replies

Sarah Lane
Forum|alt.badge.img+6
  • Inspiring
  • 126 replies
  • November 22, 2021

I feel like this is something @genietim might be able to help with.


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • November 22, 2021

Thanks for the shoutout @Sarah Lane . I do not see an immediate problem, but I believe in your query you also need to specify how many in order to get paginiation working, i.e.:

 

{ cards(pipe_id: xxx, first: 30, search: { label_ids: xxxx }) { edges { node { id title } } pageInfo { endCursor startCursor hasNextPage } } }'

 


moacyr-baptista

@genietim  I have added first but it’s keep retuning ‘MA’ as endcursor and startcursor

 


daniel-rodrigues-toolzz

I have the same problem


daniel-rodrigues-toolzz

 

moacyr-baptista could you solve this problem?

 


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • August 12, 2024

I just checked and as far as I can see, the cursor “MA” is a valid one and can be used to paginate, the next one will be different. But I admit, it feels a bit fishy, maybe Pipefy staff should help here… can you contact support@pipefy.com and report back?


daniel-rodrigues-toolzz
genietim wrote:

I just checked and as far as I can see, the cursor “MA” is a valid one and can be used to paginate, the next one will be different. But I admit, it feels a bit fishy, maybe Pipefy staff should help here… can you contact support@pipefy.com and report back?

 

Thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings