Es un sitio donde se guardan los datos de forma automatizada y ordenada
Es un sitio donde se guardan los datos de forma automatizada y ordenada
| CODIGO | NOMBRE_COMPLETO | CREDITOS |
|---|---|---|
| 20171124B | Misael Abanto | 60 |
| 20181434A | Carlos Lopez | 45 |
| 20162434F | Italo Contreras | 30 |
{ "codigo": "20171124B", "nombreCompleto": "Misael Abanto", "creditos": 60 }{ "codigo": "20171124B", "nombreCompleto": "Misael Abanto", "creditos": 60 }
{ "<field>": "<value>", "<property>": "<value>", "<key>": "<value>", }{ "<field>": "<value>", "<property>": "<value>", "<key>": "<value>", }
_id: ObjectId)Más acerca de MongoDB
| Tipo | Traducción | Ejemplo |
|---|---|---|
| ObjectId | Identificador único | ObjectId("62c7349c0ba595dbb5e17391") |
| String | Texto | "Juan Perez" |
| Number | Número | 68.50 |
| Boolean | Verdadero/Falso | true |
| Null | Nulo | null |
| Date | Fecha | Date("2022-07-23T04:00:00.000Z") |
| Object | Objeto/Subdocumento | { ... } |
| Array | Lista | [ ... ] |
*Cabe resaltar que los números pueden ser enteros (int) o decimales (float)
JavaScript Object Notation (La notación de objetos JavaScript)
{}:," "→ En Mongo las claves (keys) se llaman campos (fields)
Se representaran de manera notablemente simple en texto:
{ "_id": 1, "name" : { "first" : "John", "last" : "Backus" }, "contribs" : [ "Fortran", "ALGOL", "Backus-Naur Form", "FP" ], "awards" : [ { "award" : "W.W. McDowell Award", "year" : 1967, "by" : "IEEE Computer Society" }, { "award" : "Draper Prize", "year" : 1993, "by" : "National Academy of Engineering" } ] }{ "_id": 1, "name" : { "first" : "John", "last" : "Backus" }, "contribs" : [ "Fortran", "ALGOL", "Backus-Naur Form", "FP" ], "awards" : [ { "award" : "W.W. McDowell Award", "year" : 1967, "by" : "IEEE Computer Society" }, { "award" : "Draper Prize", "year" : 1993, "by" : "National Academy of Engineering" } ] }