This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of the Scala driver.
The Scala driver provides the following classes that make it easier to use the CRUD API:
Filters Builder Class: Support for building query filters
Projections Builder Class: Support for building projections
Sorts Builder Class: Support for building sort criteria
Aggregates Builder Class: Support for building aggregation pipelines
Updates Builder Class: Support for building updates
Indexes Builder Class: 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.