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

Show an error if we cannot resolve a database reference

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • Developer Tools

      When I don’t have a MongoDB source attached, the code does not give any hint that I need to attach a MongoDB source:

      When this happens with JPA buddy (or could be IntelliJ in general for ORM annotations), they show a red underline in the code and say ‘Unresolved database references in annotations’ and have a fix to assign a datasource in-line. 

       

      Potential fix suggestion

      Could we show a similar red line and a pop-up that asks users to assign a data source? The error could be ‘Unresolved database references in MongoDB query’ and the remedy is an option to assign a datasource in line similar to what it is doing above.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            gaurab.aryal@mongodb.com Gaurab Aryal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: