Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
How do I loop through id in a function and get the results in vue.js and Graph ql query?

1How to loop through id in a function and get the results in vue.js and Graph ql query?

i want to return value based on the fsID(id) from graph ql query in Vuejs,...my return value should contain all the values from the query

const getLogData = async () => {
    Array.prototype.forEach.call(AppObj.Appid, child => {
      var fsId = AppObj.Appid // getting data from somewhere on the code ad assigning it to var fs id to execute graph QL query
      debugger
      console.log(fsId)
      const query2 = `
      query( $fsId: ID!){
     
      agEvents(fsId : $fsId )
      
      {
        edges
        {
          node
          {
            id
            eventType
            
            user
            {
              id                 
              email
                               
            }                
          }
        }
        
      }
    }
  }
  `
      debugger
      const variables = { fsId }
      lx.executeGraphQL(query2, variables).then(function (result2) {
        var logObj = {}
        logObj.id = fsId
        logObj.logdata = result2
      })
    })
  }
  console.log(getLogData)// need all my results as a return here

i want to return value based on the fsID(id) from graph ql query in Vuejs,...my return value should contain all the values from the query

i have tried like this enter image description here ,but then Lx is not able to reach

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda