graphql/graphql-js

merge ast trees

开放

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

 (9 条评论) (4 个反应) (0 位负责人)TypeScript (2,223 个派生)batch import
help wantedproposal

仓库指标

星标
 (19,825 个星标)
PR 合并指标
 (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)

贡献者指南