Skip to main content

cards query does not return endCursor

  • November 20, 2021
  • 7 replies
  • 238 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
  • Brainy
  • November 22, 2021

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


genietim
Forum|alt.badge.img+12
  • Legend
  • 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
  • Legend
  • 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

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!