fields property

Map<String, dynamic>? fields
getter/setter pair

A subset of fields to return. The fields document specifies an inclusion of a field with 1, as in: fields: {

Starting in MongoDB 4.2 (and 4.0.12+, 3.6.14+, and 3.4.23+), the operation errors if the fields argument is not a document.

Implementation

Map<String, dynamic>? fields;