2016년 2월 20일 토요일

[java, mongodb] array 의 길이가 n 보다 큰 document find


Document doc = new Document("$where", "this.example.length > 1");
FindIterable iterable = db.getCollection(collection).find(doc);

example 이라는 array의 길이가 1보다 큰  Document 만 find 하기

댓글 없음:

댓글 쓰기