Namespace detection does not happen correctly when namespace are constructed right within the query method

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.1.0
    • Affects Version/s: 0.1.0
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      Consider the following code:

      class Something {
        MongoDatabase db;
        void queryMethod(){
          this.db = client.getDatabase("something");
          MongoCollection<Document> coll = this.db.getCollection("x");
          // Namespace is not detected here
          coll.find(eq("name", "some"))
        }
      } 

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Himanshu Singh
            Reporter:
            Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: