graphql/graphql-js

merge ast trees

Open

#1.428 geöffnet am 21. Juli 2018

Auf GitHub ansehen
 (9 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)TypeScript (19.825 Stars) (2.223 Forks)batch import
help wantedproposal

Beschreibung

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)

Contributor Guide