Every catalog application supports an image or set of images bound to this item. For that purpose, in the next chapter, we will see how to work with binary objects in MongoDB. However, now is the time to decide how to semantically link the binary data to an item document. Extending the model schema in such a way that it contains binary base64 representation of binary data in the document is anything but a good idea, as mixing literally encoded and binary data in one format is never a good idea. It increases the complexity of the application and makes it error-prone:
{ "_id": "5a4c004b0eed73835833cc9a", "itemId": "1", "itemName": "Sports Watch", "price": 100, "currency": "EUR", "categories": [ "Watches", "Sports Watches" ], ...