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)

貢獻者指南