nodes and collections
In orgvue, data is held in a database called a graph
Nodes are used to represent entities such as employees and activities (or any items you might want to keep track of) and store data
When you access data in orgvue, it is always represented as a collection
For example:
Dot notation versus Bracket notation
Dot notation is a way of referencing a property where the PropertyName
is preceded by .
(e.g.node.emailAddress
)
However, this doesn't allow you to include spaces or cases, which can make it difficult to distinguish between two properties with similar names (e.g. Email Address
vs email_address
).
A way around this is to use bracket notation using square brackets and quotation marks ['Property Name'] or ["Property Name"]
It allows you to do the same things, but you build up collections in the format node['propertyKey']
where propertyKey
has to be the exact display key of the property
In this way node['Email Address']
and node['email_address']
can be distinguished