Skip to content

queryResult.getNode

Signature: queryResult.getNode(columnName, instance*)

Returns: String columnValue - the value of the first node that matches the columnName

Get the value of the first node that matches the columnName.

Parameters

Type Name Description Default
String columnName the column name
Integer instance* (optional) the row instance to return. Use 1 for the first instance. 1

Example

// execute the query
var queryResult = qie.doSelectQuery("EMR Database", "select name, date_of_birth as dob from patient where patient_id = 1");
var nameOfFirstResult = queryResult.getNode("name", 1);