私は春のプロジェクトを進めています。 mongodbとspringのデータを使っています。
私は支持する必要があります。
Query query = new Query(Criteria.where("owner.$id").is(user.getId()).( and("idea.$id").is(null));)
それが欲しいです ("idea.$id").is( not null)
どのようにできるのか?
回答:
回答№1は2あなたは探している $ne
オペレーター。
(and("idea.$id").ne(null))