CountDocuments equivalent before mongodb 4.0

9 views
Skip to first unread message

Zhihong GUO

unread,
Mar 3, 2020, 12:39:39 PM3/3/20
to mongodb-go-driver
Hello, 

I am developing a feature based on Collection.CountDocuments, but I just notice that this API available after v4.0. Is there any equivalent function able to be used on v3.6?

Thanks,

James

Isabella Siu

unread,
Mar 4, 2020, 12:17:13 PM3/4/20
to mongodb-go-driver
Answered in https://community.mongodb.com/t/managing-schema-changes-with-mongodb/1137. For future reference, we are hoping to move all Google Group communication to the community forums, so it's sufficient to just ask the question there rather than both places. 

Divjot Arora

unread,
Mar 4, 2020, 12:22:04 PM3/4/20
to mongodb-go-driver
Small edit to the answer above: the correct link for the community forums answer is https://community.mongodb.com/t/whats-the-equivalent-function-of-countdocuments-before-4-0/1259/4.
Reply all
Reply to author
Forward
0 new messages