Inspectopedia Help

Spring Data MongoDB JSON unresolved fields

Reports unresolved document fields specified inside of org.springframework.data.mongodb.repository.Query annotation.

Example:

@Document class User { @Field String name; } interface UserRepository extends Repository<User, Long> { @Query("{ age: { $gt: ?0 } }") // 'age' is highlighted as unresolved List<User> findUsersOlderThan(Integer age); }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Spring Data, 233.SNAPSHOT

Last modified: 13 July 2023