In this scenario, a partner has logged into the website and wants to add a new property. As you recall from our discussion on the data structure for Book Someplace, documents in the properties collection have the following data structure:
Property = {
"propertyKey" : <string>,
"partnerKey" : <string>,
"propName" : <name of this property>,
"propInfo" : <PropInfo>,
"address" : <Location>,
"contactName" : <Name>,
"contactInfo" : <Contact>,
"rooms" : [<RoomType>,<RoomType>,etc.],
"reviews" : [<Review>,<Review>,etc.],
"rating" : <int>,
"totalBooked" : <int>
}
You might note that each Property documents includes embedded object classes, all under booksomeplace.entity.*:, such as PropInfo, Location,...