When you use the following Spring Criteria method calls in your queries, the MongoDB for IntelliJ Plugin generates insights for your workspace, including insights regarding index warnings, type validation, or database reference validation. If your query contains a combination of methods the IntelliJ Plugin can generate insights from and methods that the IntelliJ Plugin cannot generate insights from, the IntelliJ Plugin does not generate any insights.
Query Operation Methods
Name | Description |
---|---|
Returns the number of documents for the given Query querying the given collection. | |
Maps the results of an ad-hoc query on the collection for the entity class to a List of the specified type. | |
Query for a list of objects of type | |
Map the results of an ad-hoc query on the collection for the entity class to a single instance of an object of the specified type. | |
Execute an aggregation operation. The raw results will be mapped to the given entity class. | |
Execute an aggregation operation backed by a MongoDB |
Filtering Methods
Name | Description |
---|---|
Sets the given cursor position on the Query instance. | |
Creates a new Query using the given | |
Create an independent copy of the given Query. The resulting Query is not a binary equal to the given source but semantically equal in terms of creating the same result when executed. | |
Static factory method to create a Criteria using the provided key. | |
Creates a criterion using the | |
Creates a criterion using the | |
Creates a criterion using the | |
Creates a criterion using equality. |
Aggregation Methods
Name | Description |
---|---|
Creates a new | |
Creates a new | |
Factory method to create a new | |
Creates a new | |
Obtain a | |
Factory method to create a new | |
Limits the result to the given number of elements. | |
Includes the given fields into the projection. | |
Creates a new | |
Creates a | |
Creates a new | |
Create a sort specification for an ascending sort on the given fields. | |
Create a sort specification for a descending sort on the given fields. | |
Combine multiple sort specifications. If any field names are repeated, the last one takes precedence. |