Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

263
Views
El cartero obtuvo un valor nulo como datos de respuesta, incluso si se envió normalmente desde el servicio

Actualmente estoy trabajando en Graphql API, y soy bastante nuevo en esto. Tengo una función que obtiene una lista de trabajos, la respuesta de consulta de GraphQl devolvió los datos normalmente (matriz no vacía), pero cuando ejecuto la función que devuelve estos datos a través del cartero o Appolo, obtuve un null en la respuesta. Aquí están la consulta y la respuesta:

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

la funcion ejecutada

 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

¿Alguien puede decirme dónde está el problema? Gracias

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!