title: How can I know Mongodb query runs on which node?
body: <p>When connecting to a MongoDB replication cluster, I want to know which node the query runs on. </p>
  
  <p>I tried to use <code>explain()</code> in mongo shell, but the Java driver doesn't seem to support this command.  </p>
  
  <p>How can I achieve this using MongoDB Java Driver?</p>