verify assertion on attempt to include a subfield within a non object array element

XMLWordPrintableJSON

    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Observed behavior: Attempt to include the field 'a.b' from document

      { a:[ 1 ] }

      triggers a verify assertion.
      Expected behavior: The query projection implementation omits the array value in this case and does not assert.

      c = db.c;
      c.drop();
      
      c.save( { a:[ 1 ] } );
      
      printjson( c.aggregate( { $project:{ 'a.b':1 } } ) );
      printjson( c.find( {}, { 'a.b':1 } ).toArray() );
      

            Assignee:
            Matt Dannenberg (Inactive)
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: