Accept raw documents in driver API

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • 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

            Assignee:
            Isabel Atkinson
            Reporter:
            Isabel Atkinson
            None
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: