nosql.afq.includeID property

Determines whether an aggregation query automatically adds the _id field if no custom _id is specified.

Values

nosql.afq.includeID
true
Default. Automatically adds the _id field if no custom _id is specified.
false
The _id field needs to be explicitly included in the field selection.

Example

Consider the following aggregation query:
db.furniture.aggregate({"$project": {"type":1, "material":1}})
If the Nosql.afq.includeID property is set to false, the query returns the fields type and material. If it is set to true the _id, type and material are returned.