how to write java code for nested query

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            jacky chen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: