Read

zwrite

The simplest way to retrieve data from a GT.M global tree is to use the zwrite command.

zwrite ^movies("The Matrix",*)

The use is trivial when we know what indices exist.

For example, checking for “actors”

zwrite ^movies("The Matrix","actors",*)

The zwrite is very convenient for interactive sessions with a human operator, but it is less useful for interacting programatically with the database. This is the reason why the following tree-branch navigation techniques are commonly used instead.