`queries.getNodeById` through the resolver's own id → node cache.
(id: string)
| 714 | |
| 715 | /** `queries.getNodeById` through the resolver's own id → node cache. */ |
| 716 | private nodeById(id: string): Node | null { |
| 717 | const cached = this.nodeByIdCache.get(id); |
| 718 | if (cached !== undefined) return cached; |
| 719 | const node = this.queries.getNodeById(id); |
| 720 | if (node) this.nodeByIdCache.set(id, node); |
| 721 | return node; |
| 722 | } |
| 723 | |
| 724 | /** |
| 725 | * Clear internal caches |
no test coverage detected