Skip to main content

I'm trying to query all cards from pipe using Pipefy API Graphql, but some cards that appear in the pipe board aren't being returned in the api.

In the code below I'm trying get all cards from my Pipe

{
pipe(id: 1260940) {
phases {
id, name, cards { edges {node {
id, createdAt, fields {
name
value
}
}}}
}
}
}


Or if I search directly in the phase where are these "hidden" cards

{
phase(id: 8422613) {
cards {
edges {
node {
id
}
}
}
}
}

For example: the card #426803396, that is in this pipe (1260940) and this phase (8422613), isn't returned in any those queries above.

Two possible issues I can think of:


@Caio Santos hello, how are you?

It’s been a while since you asked about this and @genietim gave you the answer.

But yes, you need to use pagination. We have pagination so you can see all cards within the phase or pipe. The current limit of cards/records shown is 30 cards per phase and 50 cards per pipe.

Pagination works like this; you will set the pageInfo attribute and it will return the "endcursor", with the endcursor you can see the other cards within that phase, putting it as an argument in the "after" command.

 

Example:{  phase(id: 6158453){

name

cards (first:30 after: "WzQzODY0NDcwXQ=="){

      pageInfo{

endCursor

hasNextPage}

edges {

node {

fields{

value

field{

id 

label }}

id 

title

createdAt

done

pipe {

id

name}

creatorEmail

current_phase {

id

name }}}}}


Reply