I have a problem with an aggregation that works in Compass and VScode Extension but not in Java

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      I have a problem with an aggregation that works in Compass and VScode Extension but not in JAVA via spring-boot-starter-data-mongodb.
      I have debugged all the way to the driver, and everything seemed normal.

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      Driver version: 4.6 and 4.7
      Mongo Server: MongoDB Atlas version 6.0.0 

      How to Reproduce

      I have 3 collections:

      1. device
      {
        _id: ObjecId,
        name: string,
        ...
      }
      1. hardwareInventory
      {
        _id: ObjectId,
        dictionaries: {
          Bios Information: [Object],
          Operating System: [
            {
              Name: String,
              OS StartUp: {
                value: Date,
                unit: String,
                ...
              },
              Service StartUp: {
                value: Date,
                unit: String,
                ...
              }
            }
          ]
          ...
        }
        ...
      }
      1. softwareInventory

      Steps to reproduce. If possible, please include a Short, Self Contained, Correct (Compilable), Example.

      Additional Background

      Please provide any additional background information that may be helpful in diagnosing the bug.

            Assignee:
            Ross Lawley
            Reporter:
            Joachim Hansen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: