[JAVA-2914] how to write java code for nested query Created: 22/Jul/18 Updated: 03/Apr/23 Resolved: 23/Jul/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | jacky chen | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
db.a.find({ "id" : { "$in" : db.b.distinct("id") }}) How to write java code for above nested query ? is there any API for { "$in" : db.b.distinct("id") }I just try db.b.distinct("id") as text , but failed. |
| Comments |
| Comment by jacky chen [ 22/Jul/18 ] |
|
duplicated. please refer to https://jira.mongodb.org/browse/JAVA-2915 |