Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この例を実行しようとしていて、leaderboardに挿入しましたdb.players。ただし、 を実行するleaderboardと、名前は表示されません。コードで手動で指定されたものでさえありません。mongodが走っています。
leaderboard
db.players
mongod
(leaderboard.jsの上部にある流星コレクションとして定義されているdb.players)の代わりに、に挿入していることが原因である可能性がありますPlayersPlayers
Players
その場合は、挿入ステートメントを次のように変更してください。
db.players.insert...
に
Players.insert...