asIterable

Creates an Iterable that wraps this document.

Each pair is the name of a field and its value.

The iteration order of a BSON document is preserved: fields appear in the same order as they are written in.

Requirements