graphql/graphql-js

merge ast trees

Open

#1 428 ouverte le 21 juil. 2018

Voir sur GitHub
 (9 commentaires) (4 réactions) (0 assignés)TypeScript (2 223 forks)batch import
help wantedproposal

Métriques du dépôt

Stars
 (19 825 stars)
Métriques de merge PR
 (Merge moyen 12j 6h) (42 PRs mergées en 30 j)

Description

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)

Guide contributeur