Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19503

Javascript object serialization process should skip properties with undefined values

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.0.3
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Build 8 08/31/15, Build 9 (09/18/15), Build A (10/09/15), Build B (10/30/15), Build C (11/20/15)

      Description

      Inserting a "undefined" field (e.i. a: undefined) results in a documenta with a "null" value in that field.

      In my opinión those field should be ignored and not transformed, same as JSON.stringify.

      This could be reproduced in the mongodb console and in the node driver

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.reams Jonathan Reams
              Reporter:
              victorherraiz Víctor Herraiz Posada
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: