etrieves documents from MondoDB collection named WEB322 the only documents that are selected are the ones with value 211 in the semester field  the only fields of the selected documents that are retrieved are firstName and lastName make sure the _id field is NOT retrieved

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question
100%

QUESTION 21

  1. Code a chain of MongoDB methods that 

     

    • retrieves documents from MondoDB collection named WEB322
    • the only documents that are selected are the ones with value 211 in the semester field 
    • the only fields of the selected documents that are retrieved are firstName and lastName
    • make sure the _id field is NOT retrieved
    • sort the selected documents by lastName in ascending sequence
    • store the result to an array named result
    • assume the connection between the program and database had already been established and the name of the database object is db
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning