open suspend fun save(nodeRepository: NodeRepository)

Deletes all deletedNodes and saves all updatedNodes to the database

Parameters

nodeRepository

the repository to use for saving and deleting


open suspend fun <T : Node> save(node: T, nodeRepository: NodeRepository): T

Deletes all deletedNodes and saves all updatedNodes to the database

Return

the saved version of node

Parameters

node

an additional node to save, which the saved version of should be returned

nodeRepository

the repository to use for saving and deleting