`queries.getNodeById` through the resolver's own id → node cache.
(id: string)
| 814 | |
| 815 | /** `queries.getNodeById` through the resolver's own id → node cache. */ |
| 816 | private nodeById(id: string): Node | null { |
| 817 | const cached = this.nodeByIdCache.get(id); |
| 818 | if (cached !== undefined) return cached; |
| 819 | const node = this.queries.getNodeById(id); |
| 820 | if (node) this.nodeByIdCache.set(id, node); |
| 821 | return node; |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * Clear internal caches |
no test coverage detected