InterviewSolution
Saved Bookmarks
| 1. |
Unstructured data means that within a collection there is the possibility that some fields may not exist for all the documents. How can documents be queried solely based on field availability? |
|
Answer» only those DOCUMENTS that contain the field specified in the query. For the FOLLOWING documents in EMPLOYEE COLLECTION { _id: 1, name: "Jonas", linkedInProfile: null }, { _id: 2, name: “WILLIAMS” } The query { linkedInProfile: { $exists: true } } will return only the employee “Jonas” |
|