Skip to main content
Solved

Some cards from pipe aren't being returned in API


Caio Santos

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.

Best answer by Nicole Chiroli

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

View original
Did this topic help you find an answer to your question?

2 replies

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

Two possible issues I can think of:


Nicole Chiroli
Pipefy Staff
Forum|alt.badge.img+10
  • Product Manager
  • 301 replies
  • Answer
  • July 1, 2021

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


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