Created
March 11, 2016 16:23
-
-
Save hectorgool/611c23f47e6c098ddd33 to your computer and use it in GitHub Desktop.
An insert example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.offert.remove({}) | |
| db.offert.insert( | |
| { | |
| "_id" : ObjectId().str, | |
| "name" : "Nombre de la Oferta 1", | |
| "cost" : "5000", | |
| "course" : { | |
| "name" : "Nombre del Curso 1", | |
| "principal_image" : "principal_image.png", | |
| "images": ["image1.png","image2.png","image3.png","image4.png"], | |
| "short_description" : "Descripción corta del Curso 1", | |
| "long_description" : "Descripción larga del Curso 1" | |
| }, | |
| "teacher" : { | |
| "name": "Nombre del Profesor 1", | |
| "paternal_name": "Apellido paterno del Profesor 1", | |
| "maternal_name": "Apellido materno del Profesor 1", | |
| "contact" : { | |
| "phone" : "56581111", | |
| "email" : "email@email.com", | |
| "address" : "Dirección del profesor 1" | |
| } | |
| }, | |
| "ubication" : { | |
| "ciudad":"Ciudad de la Oferta 1", | |
| "address" : "Dirección de la Oferta 1", | |
| "location":{ | |
| "lat" : "22.0074", | |
| "lon" : "-102.2837" | |
| } | |
| } | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment