Builders
The Scala driver provides the following classes that make it easier to use the CRUD API:
Filters: Support for building query filters
Projections: Support for building projections
Sorts: Support for building sort criteria
Aggregates: Support for building aggregation pipelines
Updates: Support for building updates
Indexes: Support for creating index keys
Important
Builders make use of the Bson
helper. This type, unlike the
Document
type, is not type-safe. Instead, conversion to BSON is
done by using Codecs and the CodecRegistry.