graphql/graphql-js

merge ast trees

Open

#1,428 创建于 2018年7月21日

在 GitHub 查看
 (9 评论) (4 反应) (0 负责人)TypeScript (2,223 fork)batch import
help wantedproposal

仓库指标

Star
 (19,825 star)
PR 合并指标
 (平均合并 12天 6小时) (30 天内合并 42 个 PR)

描述

Feature request

Another feature that is extremely useful and utils are lacking it: merging ast trees.

Primary use case: merging two queries (selections) to dynamically construct queries. There are plenty of cases where it is needed, mainly in libraries and in cases of graphql to graphql communication.

PS It would be great if somebody can say how to do this properly now (simple deep merge doesn't wotk properly)

贡献者指南