graphql/graphql-js

merge ast trees

Open

#1428 aperta il 21 lug 2018

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

Metriche repository

Star
 (19.825 star)
Metriche merge PR
 (Merge medio 12g 6h) (42 PR mergiate in 30 g)

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