Skip to main content
Solved

Como eu faço if em uma requisição GrathQL?

  • April 5, 2023
  • 1 reply
  • 295 views

felipe-leite-matrixenergia
Forum|alt.badge.img

{
  allCards(
    pipeId: 302991598
    first: 50
    after: "WyIxMy4wIiwiNDQuMCIsNjQ2NjkwNDg0XQ"
  ) {
    pageInfo {
      hasNextPage
      endCursor
    }
    edges {
      node {
        id
        fields {
          name
          value
        }
        current_phase {
          name
        }
      }
    }
  }
}

 

 

gostaria de colocar um if para pegar apenas os cards que a current_phase não seja “Cliente sem interesse” nem “Cliente sem contato”

Best answer by Lucas Democh

@felipe-leite-matrixenergia os artigos abaixo podem te ajudar na construção dos filtros:

 

 

Boa sorte!

1 reply

Lucas Democh
Forum|alt.badge.img+15
  • Legend
  • Answer
  • April 6, 2023

@felipe-leite-matrixenergia os artigos abaixo podem te ajudar na construção dos filtros:

 

 

Boa sorte!