graphql/graphql-js

merge ast trees

Aperta

#1428 aperta il 21 lug 2018

 (9 commenti) (4 reazioni) (0 assegnatari)TypeScript (2223 fork)batch import
help wantedproposal

Metriche repository

Star
 (19.825 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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)

Guida contributor