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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring Data, 241.14841

Last modified: 12 March 2024