Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6325

Implement Document Sequence Support

    • Not Needed
    • 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?

      Implement OP_MSG section type 1 (document sequences)

      AC:

      • Add support to OpMsgRequest to have multiple sections.
      • Add DocumentSequence type that contains a field name and an array of Documents
      • On serialization of the sections in the OpMessageRequest, remove all DocumentSequences from the command and serialize them in subsequent sections as kind byte 1 -> int32 (size of the section in bytes) -> cstring (name of the field) -> documents (serialized as bson back to back with no separator)

       

      Tests:

      • Add unit tests on OpMessageRequest#toBin that test that when document sequences are present in the command they are properly serialized as multiple sections

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: