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

176
Vistas
How to post array of Subdocument, and check with Postman?

On the server side I have a model and a controller to execute the POST action. However it is giving results of 404.

model would contain array of subdocuments. for example **

[AnswerSchema]
{answer: String,
 index: Number}
[QuestionsSchema]
{question: String,
 answers: [AnswerSchema],...}
[QuizSchema]
{questions:  [QuestionSchema],...}

**

in the controller side it would with an aysnc function

**

const newQuiz = new Quiz({
            questions: req.body.questions
});
        
const savedQuiz = await newQuiz.save();

**

but while using Postman it wouldn't execute the post and give a 404 page. do I need to have any "push" for the questions in the controller side? or is there a hight possibility that there is something wrong with the data tested in postman?

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