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

232
Vistas
how to insert data in this type of schema through express js?

This is my schema. But I'm not able to insert data to bicepsExcercise image Please help me with Controllers to add some data in Biceps Excercise. When I try to insert the Data directly by accessing excercise nothing happens. I want to insert data in bicepsExcercise and in Image field

const mongoose = require('mongoose')

const DataModel = new mongoose.Schema({
    excercise: [{
        bicepsExerciseImage: {
            image: {
                type: String
            },
            bicepsExercise: {
                type: {
                    type: String
                },
                name: {
                    type: String,
                },
                videoUrl: {
                    type: String,
                },
                time: {
                    type: String,
                    default: "Null"
                },
                image: {
                    type: String,
                }
            },
        }
    }]
})

module.exports = mongoose.model('DataModels', DataModel)
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