Today lets see how we can access sub-document or sub-object using Dot notation, in MongoDB. Documents in our collection nesting…