I'm trying to run the leaderboard
example, and I've inserted into db.players
. However, when running leaderboard
, no names appear. Not even the ones specified manually in the code. mongod
is running.
It might be because you're inserting into db.players
, instead of Players
(Players
is defined as a meteor collection at the top of leaderboard.js)
If that's the case, change your insert statement from:
db.players.insert...
to
Players.insert...