graphql/graphql-js

merge ast trees

Open

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

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

描述

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)

贡献者指南