asSequence

Creates a Sequence of the fields in 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

The Sequence.toString output should follow the same rules as on BsonDocument itself.