Firebase transactions (how to?)

Hi, does anyone know how to implement firebase transactions in appgyver, i recently heard about them and you can take a look bellow,
but i dont know, how i could use them in my app. Is it like a specific logic or what?
im interested in updating a document, where multiple users have access in updating and so i want to make sure i always change the latest data to change.
Thank you in advance.