Answer the question
In order to leave comments, you need to log in
How to check the uniqueness of a user?
I have to plot the playing players by base in Mongo. I get information from the database like this:
heh = list(db.events.aggregate(
[
{ "$match": {"status": 'start'}},
{"$group": {"_id": "$eventName", "players": {"$sum": 1}}},
]))
db.events.distinct("uid", {"is_buyer": 1})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question