Quiz Questions - Answers Quiz Questions - Answers: Module 3 - Setting Up Our Database Module 3 - Setting Up Our Database
Quiz Questions - Answers Quiz Questions - Answers: Module 3 - Setting Up Our Database Module 3 - Setting Up Our Database
Answer
Answer: C - A collection of related objects (i.e. documents).
2. The "listings" collection in our database is to store data that involve the
bookings that have been made for listings in our app.
A : True
B : False
Answer
Answer: B - False. The "bookings" collection in our database is to store data that involve the bookings that have been
made for listings in our app.
3. Why is it important for us to help define the shape of documents and collections
in our database with TypeScript, on the server?
A : It helps prepare what kind of data we expect to receive and persist on the database since MongoDB (and NoSQL
databases in general) don’t require us to have a predefined schema.
B : MongoDB is only compatible with TypeScript specific server technologies.
C : To use the Node MongoDB driver which is a TypeScript specific library.
D : To be compatible with our GraphQL API.
Answer
Answer: A - It helps prepare what kind of data we expect to receive and persist on the database since MongoDB (and
NoSQL databases in general) don’t require us to have a predefined schema.
await db.bookings.drop();
Answer
Answer: C - It drops (i.e. removes) the "bookings" collection.