Uploaded image for project: 'MongoDB for IntelliJ Plugin'
  1. MongoDB for IntelliJ Plugin
  2. INTELLIJ-94

invalid warning when trying to find an element in an array using equals

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.0.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Iteration Light Year
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

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

      Given a document like this:

      {
         countries: [ "Germany", "France" ]
      }
      

      A query like this:

      { countries: "Germany"}
      

      Shows a warning where "countries" is a List<String> and the value is a string.

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

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Connect to our devtools cluster in the sample_mflix database and write the following query:

      template.find(query(where("languages").is("English")), Movie.class)

      Expected Results

      What do you expect to happen?

      No warning is shown.

      Actual Results

      What do you observe is happening?

      A warning is shown.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            himanshu.singh@mongodb.com Himanshu Singh
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: