-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
- Option can be set on the Client, Database, and Collection classes
- Option is inherited when selecting a database or collection similarly to typeMap
- Option is used to encode pipelines passed to various methods
- Should accept any MongoDB\Codec\Encoder instance, wrong encoders will throw exceptions when encountering unsupported objects
- Naming suggestions: encoder (very vague), builderEncoder (generic enough to cover aggregation pipelines and queries)
- Names like aggregationEncoder or pipelineEncoder are too specific
- Defaults to new MongoDB\Builder\BuilderEncoder