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.
MongoDB ドキュメントの配列で_idキーの名前を変更するにはどうすればよいですか?id
_id
id
だから、私はこれを作りたい:
[{"_id"=>"1", "name"=>"Matt"}, {"_id"=>"2", "name"=>"John"}, ...]
これに:
[{"id"=>"1", "name"=>"Matt"}, {"id"=>"2", "name"=>"John"}, ...]