Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2914

how to write java code for nested query

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            8666592@qq.com jacky chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: