cards query does not return endCursor

  • 20 November 2021
  • 3 replies
  • 74 views

Userlevel 1

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}

 


3 replies

Userlevel 7
Badge +6

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

Userlevel 7
Badge +8

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 } } }'

 

Userlevel 1

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

 

Reply