I have to get the existing id to update user information (e.g. email/name/password). I using POJOs to map the object id. I can see a similar post, but in .Net
How can I do that to pass it to the constructor? (Sorry, I'm very new to MongoDB)
ObjectId _id = request.getParameter("id"); // "erro with Type mismatch: cannot convert from String to ObjectId"
User user = new User(_id, email, fullName, password);
ObjectId. Aside from that. Pleas share more of your code.