在生成具有 `near-operation-file` + `TypeScript-operations` 的类型时内存不足
作者: jakubwawrzyczek创建于 2026年9月8日更新于 2026年9月16日
- The cache key is the entire list of field paths
The cache uses a label to look things up, and that label is every field name in the selection set glued into one string. For our schema, a single label is 168 MB, and the labels are kept until the run ends, so memory fills up with labels. In
transformSelectionSet, selection-set-to-object.ts#L1110C1-L1134C68:
内容来源: dotansimha/graphql-code-generator