Mongoose uses the term path
to define access paths to fields in a main document as well as subdocuments. For example, if a document has a field named name
, which is a subdocument with title
, first
, and last
properties, the following are all paths:
name
name.title
name.first
name.last