[SOLVED] Get id doesn't work for user object

how do i get the value of _id in MongoDB?
{user?.get("_id")} or {user?.get("id")} or {user?.get("objectId")} doesn’t work

try user.id to see if it works

1 Like

Perfect. Thank you! it works