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

269
Vistas
Postman got null as response's data, even if it sent normally from the service

I'm currently working on Graphql API, and I'm fairly new to this. I have a function that gets a list of jobs, the GraphQl query response's returned the data normally (non-empty array), but when I execute the function that returns this data via postman or Appolo, I got null in the response. Here are the query and the response:

query{
    filterJobs(input:{}){
        reward{
            value
        }
    }
}



------ response in postman: -------
{
    "data": {
        "filterJobs": null
    }
}

------ data returned from the function ----
 [ {
    id: 'po876elyhftbo2hy5gone',
    createdAt: '2022-04-22T14:48:23.568162+00:00',
    reward: 60,
    orders: [ [Object] ]
  }
]

the executed function

module.exports = async function filter(args) {
  const response = await callContentAPI({
    variables: {
      input:args.input,
    },
    query: `
    query filterJobs{
        jobs
          {
          id
          createdAt
          reward
          order{
            deadline
            deliveryAddress{
              city
              country
            }
          }
          }
        }
      }
    `,
  });
  
  var jobs = response.data.jobs;
 
  if (!printJobs) {
    throw new Error("Unable to get orders");
  }

  return jobs

Can anyone tell me where is the problem? Thanks

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