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)

貢獻者指南