Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7294

Comment on: "primer/query.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    Description

      I have this aggregation query

      bson Document replaces multiple appearance of $unwind, $match and probability $project

      Document aggregation = new Document()
      .append("$match", new Document("io.id", novedad.io_id))
      .append("$unwind", "$usuarios")
      .append("$project", new Document("usr", "$usuarios"))
      .append("$unwind", "$usr.io")
      .append("$match", new Document("ioLog", novedad.idlog));

      The json transform looks ike this
      { "$match" :

      { "ioLog" : "00000000b0de35ac" }

      , "$unwind" : "$usr.io", "$project" :

      { "usuario" : "$usuarios" }

      }

      first $match is replaced by second one and happened the same to $unwind

      Attachments

        Activity

          People

            Unassigned Unassigned
            mario.lenis@kerberus.com.co Jorge Mario Lenis L
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago