updateOne & replaceOne

hey guys i still dont understands the difference between update and replace
what he said at the last of the video with the getting from the server thing
can someone explain it in more details ??
thanks in Advance