# TamedJs Ranger 

## Overview
An essential part of the data viewer is that Ranger can display the documents that a document is linked to in the form of nested nodes. When a nested node is selected, it will then proceed to acquire all of the documents that the nested node's document is linked to and will render those documents as nodes which are nested as grandchildren to the initial node. This will require a more advanced and generic query setup due to several factors:

* The number of documents linked to the viewed document is unknown
* The number of different collections that the linked documents occupy is unknown
* We desire to return every linked document, not just documents from a specific collection or link.

Immediately, how pagination will function is a concern because pagination assumed us working out of a single collection and potentially filtering the results.  It is possible that we could create a special form of pagination where the node stores all of the object _keys that it is linked to and just iterates through that array.

[Reference](https://thetrg.teamwork.com/#notebooks/148784)
