Good way to design a nested schema

Which is the most efficient schema or collection design for this kind of site that sells shoes/ clothes, each item basically has the following fields: Type(e.g loafers), name, style(e.g classic), color, description, size(s), quantity, rating.
So, how can I create the schema so that, for instance under styles, each would have its own colors, each color with its sizes, and each size with its quantity (stock).
Thanks in advance. Am new to meteor

1 Like

As a developer you are the one to decide.
Following articles may lighten your path:

1 Like

Thanks, I chose the nested one, interesting

There’s also a very good section on data modelling in the MongoDB docs:

It features a section with common design patterns:


In my experience nested schemas are usually not worth the headaches. Using your example, the schema you describe would make it very hard to query for all items of one size disregarding their color, for example.