The preferred way is update with upsert: Location.objects(user_id=user_id).update_one(set__point=point, upsert=True). More on upserts on the MongoDB ...
確定! 回上一頁