-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
When the gutter icon is clicked, it will open the DataGrip console. If there is a DataGrip console already attached for that connection, it will open it. If not, it will create an empty one.
If the query depends on runtime parameters (for example, a Java parameter), they will be added as `var` to the query.
Example:
Document findDocumentByNameAndAge(String name, int minAge) { //Parameter values of name and minAge unknown Document query = new Document("name", name) .append("age", new Document("$gt", minAge)); return collection.find(query).first(); }
// Enter parameter values to execute this query var name = var age = db.exampleCollection.find({ "name": name, "age": { "$gt": age } });