-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
We accept non-raw documents in several places in our API, e.g. update_one. However, some users might prefer to use RawDocument instead for the performance/efficiency benefits. We should update our API in 3.0 to accept RawDocuments in place of Documents. Some ways we could do this:
- Accept anything that implements TryInto<RawDocument>
- Accept anything that implements Serialize