Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Guardar una instancia. Sin mostrar el Schema del mongoose #4

Open
cronopio opened this Issue · 0 comments

1 participant

@cronopio
Owner

Recrear la siguiente prueba

var Entidad = require('fm').Entidad;
 var myEntidad = new Entidad();
 myEntidad.set({subtipo:'otro'});
myEntidad.get('subtipo');
 myEntidad.save(function(err, my){
   if (!err) my.get('subtipo');
   // Aqui ya debio haber guardado en el mongo
 });

No debe permitir cambiar el esquema de mongoose directamente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.