I developpemnt on spring projects. I'm using mongodb and spring data.
I need to support.
Query query = new Query(Criteria.where("owner.$id").is(user.getId()).( and("idea.$id").is(null));)
i want that ("idea.$id").is( not null)
("idea.$id").is( not null)
How can i do?
You are looking for $ne operator.
$ne
(and("idea.$id").ne(null))