¿Cuál es el comando para insertar un documento en una colección?
Comandos Básicos de MongoDB

Quiz
•
Instructional Technology
•
9th Grade
•
Medium
jose Mendoza
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
db.coleccion.createOne({clave: 'valor'})
db.coleccion.insert({clave: 'valor'})
db.coleccion.insertOne({clave: 'valor'})
db.coleccion.add({clave: 'valor'})
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué comando se utiliza para encontrar todos los documentos en una colección?
db.collection.getAll()
db.collection.retrieve()
db.collection.find()
db.collection.findAll()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se actualiza un documento específico en MongoDB?
Utilizar el método 'find()' para buscar el documento.
Modificar el documento directamente en el archivo de base de datos.
Eliminar el documento y crear uno nuevo con los mismos datos.
Utilizar el método 'updateOne()' o 'updateMany()' con un filtro y un objeto de actualización.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué comando se usa para eliminar un documento de una colección?
deleteOne() o deleteMany()
dropCollection()
clearDocument()
removeOne()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el comando para agregar un nuevo campo a un documento existente?
db.collection.addField({_id:
db.collection.insert({_id:
db.collection.modify({_id:
db.collection.update({_id:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué comando se utiliza para contar el número de documentos en una colección?
countAll()
getCount()
countDocuments()
totalDocuments()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué comando se usa para eliminar todos los documentos que coinciden con una condición?
deleteOne
removeAll
clearDocuments
deleteMany
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
ITS Quiz

Quiz
•
University
19 questions
PT1 CHAPTER 3

Quiz
•
University
20 questions
Technology pop quiz

Quiz
•
9th Grade - Professio...
22 questions
SQL Atomicidad

Quiz
•
University
20 questions
Persiapan Ujian Sekolah ASj

Quiz
•
12th Grade
15 questions
Ulangan Harian 1

Quiz
•
11th Grade
20 questions
App Web en Servidor

Quiz
•
University - Professi...
20 questions
Web Development Quiz

Quiz
•
8th - 9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Instructional Technology
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade