title: how to insert a object in mongodb using spring
body: <p><a href="https://i.stack.imgur.com/1z771.png" rel="nofollow noreferrer">required format image</a></p>
  <p>I want to object data into MongoDB using spring and I have hardcoded it.
  please how to write a schema for that and I have taken it as an example only.
  I have a different type of categories in it I have taken only clothes.
  please tell me how to write one schema for a different type of categories and query too.</p>
  <p>please find the attachment for your reference</p>