node

fun node(path: String): DatasyncNode

Gets a DatasyncNode at a given path.

Path segments are separated by slashes ("/"). The following segments are interpreted this way:

  • ".": current node

  • "..": parent node. Note that ".." on the root node has no effect and refers to the root node itself (contrary to DatasyncNode.parent, which returns null)

  • "#{key}", ".hash.{key}": these hashed path-segments automatically expand into 4 segments (the deepest one being key itself) and make it possible to handle large lists of items (see Webcom documentation)

  • ".list.{key}": these path-segments give a hint to the Webcom back end that these nodes are intended to have many children (as a list) so that it optimises the individual retrieval of their children, preventing retrieving the nodes as a whole when the data of all their children become too big.