Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

693
Views
Mongodb DeprecationWarning: el recuento está en desuso. Use Collection.count_documents en su lugar

ingrese la descripción de la imagen aquí

Quiero consultar con Python mongodb pero "DeprecationWarning: count está en desuso. Use Collection.count_documents en su lugar". da tal error. ¿Cómo puedo solucionar esto?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Simplemente use el nuevo método count_documents ya que count está en desuso

 mycol.count_documents(myquery)

https://pymongo.readthedocs.io/en/stable/api/pymongo/collection.html?highlight=count#pymongo.collection.Collection.count_documents

https://docs.mongodb.com/manual/reference/method/db.collection.countDocuments/

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!