productReviews rating db.products.insert( { '_id' : 1, 'productname' : 'Ipad Pro', 'price' : [799.99, 1000.00, 2300.00], 'company' : 'Apple', 'producttype' : 'tablet' } ) reviewers { 'reviewername' : 'Shirley Walker', 'email' : 'sw@gmail.com' } reviews [{ 'title' : 'The Ipad family of tablets', 'reviewdate' : '11/26/2018', 'rating' : 4.5, 'product' : { 'productid' : 1, 'productname' : 'Ipad Pro', 'price' : [799.99, 1000.00, 2300.00], 'producttype' : 'Tablet' }, 'reviewer' : { 'reviewername' : 'Shirley Walker', 'email' : 'sw@gmail.com' }, 'reviewtext' : 'Ipads are fun' }, { 'title' : 'Microsoft Surface', 'reviewdate' : '11/26/2018', 'rating' : 4, 'product' : { 'productid' : 2, 'productname' : 'Microsoft Surface', 'price' : [799.99, 12000.00], 'producttype' : 'Tablet' }, 'reviewer' : { 'reviewername' : 'Hunter S. Thompson', 'email' : 'ht@gmail.com' }, 'reviewtext' : 'expensive, underpowered laptops' }]
Monday, November 26, 2018
JSON Afternoon
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment