Implement metadata parsing logic in ExtensionStage::doGetNext()

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, ExtensionStage::doGetNext() creates a document from the result of the extension's getNext() and returns a GetNextResult. To accommodate metadata changes, the process for when the result code is kAdvanced should be as follows:

      1. Create a MutableDocument, passing through a Document initialized with the result's bson.
      2. If the result contains metadata, iterate its fields, map each name with `DocumentMetadataFields:: parseMetaType()`, and call MutableDocument::metadata().setMetaFieldFromValue()`.
      3. Freeze the MutableDocument and return a GetNextResult using the frozen document.

            Assignee:
            Aditya Deshpande
            Reporter:
            Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: