You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My get all method return as follow [ { "code": "Server", "name": "Server", "status": "active", "createdAt": "2021-12-13T16:32:46.069Z", "updatedAt": "2021-12-13T16:32:46.069Z", "createdBy": { "appId": "service-management", "userId": "2d9ef30a-a9e5-4ba9-934d-b39cbbf8ebcc", "orgId": "" }, "id": "123543" } ]
Document on mongodb
I can not get this document by id
findById return { "error": { "statusCode": 404, "name": "Error", "message": "Unknown \"ServiceType\" id \"123543\".", "code": "MODEL_NOT_FOUND" } }
deleteById return { "count": 0 }
My Model.json for id injection as follow
Is something wrong with my code? Please give me a solution.
The text was updated successfully, but these errors were encountered:
My get all method return as follow
[ { "code": "Server", "name": "Server", "status": "active", "createdAt": "2021-12-13T16:32:46.069Z", "updatedAt": "2021-12-13T16:32:46.069Z", "createdBy": { "appId": "service-management", "userId": "2d9ef30a-a9e5-4ba9-934d-b39cbbf8ebcc", "orgId": "" }, "id": "123543" } ]
Document on mongodb
I can not get this document by id
findById return
{ "error": { "statusCode": 404, "name": "Error", "message": "Unknown \"ServiceType\" id \"123543\".", "code": "MODEL_NOT_FOUND" } }
deleteById return
{ "count": 0 }
My Model.json for id injection as follow
Is something wrong with my code? Please give me a solution.
The text was updated successfully, but these errors were encountered: