Add support for path-based node querying