List of all elements and type

Pre-requisite: Know about Organizations of object in the tree structure


Example - nodeList:

List of all nodes that the user has the user right to see. Keep in mind that a TOKEN may be issued to a guest user who does not see all the elements.

Query:

query { nodeList { parent_node_id node_id type name } }

 

Response:

{ "data": { "nodeList": [ { "parent_node_id": null, "node_id": 138170, "type": "folder", "name": "rootfolder" }, { "parent_node_id": 138170, "node_id": 138170, "type": "folder", "name": "San Diego" }, ... ] } }

The tree structure is defined by references called parent_node_id. There is exactly one node in the tree which has parent_node_id equal to null. It is the so called basic level - the top-most node in the tree.

In Postman example - Get list items in tree / getNodeList

Example - camera type in nodeList:

If we want to get only objects of type "camera", we use the optional parameter type.

Query:

query { nodeList(type:camera) { parent_node_id type name node_id } }

Response:

In Postman example - Get list items in tree / getNodeListCamera