-
Cast to ObjectId failed for value "" at path "_id" 오류NODE.JS 2021. 7. 10. 05:01
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
'NODE.JS' 카테고리의 다른 글
Social Media 만들기 - 10)Status, create post 창 만들기 (0) 2021.07.10 Social Media 만들기 - 9) following, followers 보여주기 (0) 2021.07.10 Social Media 만들기 - 8) follow, unfollow 기능 만들기 (0) 2021.07.10 Social Media 만들기 - 7) userInfoProfile , edit profile 기능 만들기 (0) 2021.07.07 Social Media 만들기 - 6) search 기능 만들기 (Header) (0) 2021.07.06