@Prasad_Saya , Thanks for your response… Sorry it took me so long to reply, I am doing this project as a side project to my current job.
I understand your examples, however, am using atlas to establish my schema and I cannot edit the array values… when I make the field dimensions and assign it the array datatype, I am immediately confronted with the 0,1,2 field values in the array (item at place 0 is length) but I am unsure whether to make length another array with the value (basically making it a 2 dimensional array) or not.
I made it an object because I can define the data fields with it being an object… Am I on the right thinking?
On another note… I have been thinking about how I am doing my product collection and I have a question for you.
I am building a program which will allow businesses to sell products online… I currently have the product collection and I am embedding objects into when needed… For example I have embedded the dimension object for the length, height, width, and weight.
Where I am getting stuck is I need to allow for the differentiation between textiles and non textile products… Textiles will have the attributes colour size and quantity. I currently have the size as an object with the attributes of the sizes (large, medium, small) and the quantity. I believe I should redo this to be colour with the attribute of size and quantity.
below is my current way of doing this. Am I on the right track?
Am I on the right track or am I making this harder than it needs to be?