newOS for Developers
Back to Skill Portal
Graph Traversal
Edge queries, relationship mapping, and network analysis
📚 Related newOS Documentation
The __EDGES Table
Newgraph uses a graph database (Neo4j) on the backend. The client maintains a local cache of edges in IndexedDB. See Infrastructure → Cache for details.
// Edge key format:
"{entity}+{entityId}+{relationship}+{targetEntity}"
// Examples:
folder+abc123+attachment+post // Posts in folder abc123
user+xyz789+author+folder // Folders by user xyz789
user+xyz789+rates+user // Users that xyz789 follows
folder+abc123+access+user // Users with access to folder
// Value is an array of target IDs:
["post-1", "post-2", "post-3"]Available Skills
Common Edge Patterns
Full reference in Infrastructure → Cache → Edge Patterns
| Pattern | Meaning | Used By |
|---|---|---|
| folder+id+attachment+post | Posts in folder | readPosts() |
| user+id+author+folder | Folders by user | getUserMoods() |
| user+id+author+user | Agents by user | listAgentsByAuthor() |
| folder+id+access+user | Users with access | getGrantees() |
| user+id+rates+user | Following | getRatedOut() |