graphql/graphql-js

merge ast trees

オープン

#1,428 opened on 2018/07/21

 (9 件のコメント) (4 件のリアクション) (0 人の担当者)TypeScript (2,223 件のフォーク)batch import
help wantedproposal

Repository metrics

Stars
 (19,825 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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)

コントリビューターガイド