MongoDB Data Structures

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:20 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

collections.insert_one({“key” : “value”})

Syntax to create a document inside a collection.

2
New cards

True

True or False. If we did not assign an object ID to a document, MongoDB will automatically create one.

3
New cards

True

True or False. An object ID must be unique and not an array.

4
New cards

False

True or False. MongoDB will continue processing inserts even upon encountering an error.

5
New cards

True

True or False. The value of a field can be an array.

6
New cards

collections.find({“key” : “value”})

Syntax for accessing a document according to a specific key.

7
New cards

Dot notation

To access a value of a nested key-value pair, you use this notation.

8
New cards

collections.delete_one({“key” : “value”})

Syntax for deleting the first instance of the specified condition.

9
New cards

collections.delete_many({“key” : “value”})

Syntax for deleting all the instances of the specified condition.

10
New cards

collections.drop()

Syntax for deleting the collection.

11
New cards

client.drop_database(“database_name”)

Syntax to delete a database.

12
New cards

Projection parameter

Specifies the keys that you want to show in the filter field results.

13
New cards

Cursor

When using find(), MongoDB will return an object that points to a result. What is this object that you assign to a variable?

14
New cards

.sort(“basis_of_the_sort”, 1 or 0)

Syntax for sorting a result.

15
New cards

.skip(a)

Syntax for skipping/not displaying a certain number of records, a.

16
New cards

.limit(a)

Syntax for returning only a certain number of records displayed in the results field, a.