There are two collections in the mongodb database: "settings" and "apples".

"settings":

{ { "_id" : "box", "size" : 10 }, ... } 

"apples":

 { { "_id": "XXXX", "color: "red", "count": 100 }, } 

As when requesting a database from the "apples" collection, for each document get a new field "max_count", which is equal to the product of the apple "count" and settings.box.size?

    0