Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

249
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda