How to select all data in PyMongo?
<p>I want to select all data or select with conditional in table <code>random</code> but I can't find any guide in MongoDB in Python to do this.</p>

<p>And I can't show all data was select.</p>

<p>Here my code:</p>

<pre><code>def mongoSelectStatement(result_queue):
    client = MongoClient('mongodb://localhost:27017')
    db = client.random

    cursor = db.random.find({"gia_tri": "0.5748676522161966"})
    # cursor = db.random.find()
    inserted_documents_count = cursor.count()

    for document in cursor:
        result_queue.put(document)
</code></pre>