Cast to ObjectId failed for value "" at path "_id" 오류
https://stackoverflow.com/questions/50858647/mongoerror-filter-parameter-must-be-an-object
MongoError: filter parameter must be an object
I am creating a rest api I have end point for Post/Movies: Request body should contain only movie title, and its presence should be validated Based on passed title, other movie details should be fe...
stackoverflow.com
처음엔 오브젝트 타입으로 캐스팅하려고 이 방법도 써봤지만,
전혀 캐스팅 되지 않고 오류가 발생했다.
이걸 보고 해답을 찾았다. ㅠㅠㅠ 이름에 ''을 넣어볼 것!
https://stackoverflow.com/questions/26453507/argument-passed-in-must-be-a-single-string-of-12-bytes
Argument passed in must be a single String of 12 bytes
mongoDB collection contains the following data db.stack.find() { "_id" : "8GieRu" } The _id is not single String of 12 bytes, As per the MongoDB document of [ObjectID][1], id (string) – Can be a...
stackoverflow.com