`queries.getNodeById` through the resolver's own id → node cache.
(id: string)
| 803 | |
| 804 | /** `queries.getNodeById` through the resolver's own id → node cache. */ |
| 805 | private nodeById(id: string): Node | null { |
| 806 | const cached = this.nodeByIdCache.get(id); |
| 807 | if (cached !== undefined) return cached; |
| 808 | const node = this.queries.getNodeById(id); |
| 809 | if (node) this.nodeByIdCache.set(id, node); |
| 810 | return node; |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * Clear internal caches |
no test coverage detected