Question: Task 2 ( 2 . 0 marks ) Implement the following data manipulations on a collection of documents transport. ( 1 ) Remove a mechanic

Task 2(2.0 marks)
Implement the following data manipulations on a collection of documents transport.
(1) Remove a mechanic John Fox.
(2) Remove information about a date of birth (dob) from a description of employee number 11.
(3) Remove information about a trip number 7 performed by an employee number 11.
(4) Add information about a new trip performed by an employee number 11. At the moment we only know a trip number 999 and registration of truck used PKR786.
(5) Change a date of a trip number 15 performed by an employee number 11 to 28 SEP-18.
Very important
Implementation of each data manipulation must consist of the invocations of two methods:
print('(n) db.transport.data-manipulation-method( data manipulation)');
db.transport.data-manipulation-method( data manipulation );
where n is a number of a data manipulation as above, i.e.1 or 2 or ... or 5.
A method print() prints a text of a data manipulation into a report. A method datamanipulation-method processes a data manipulation and it includes the results into a report from the processing of a script solution2.js.
Before generation of a report it is strongly recommended to "refresh" a collection of the documents transport with the methods db.transport.drop() and load('transport.js').
 Task 2(2.0 marks) Implement the following data manipulations on a collection

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!