An object to define some options when including other relational fields.
Optional
Custom return name for included items. Defaults to fieldName.
fieldName
Collection of referenced item/s (only collection name)
Enable counting total items or not. Defaults to false.
false
Property/field name of referenced items in the current item.
Foreign field name. Defaults to _id.
Maximum number of items to include. Defaults to 50.
By default all referenced items are sorted via _createdDate field in ascending order (1) but you can customize that stage too!
Description
An object to define some options when including other relational fields.