~emersion/gqlclient-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] cmd/gqlclientgen: recursively collect fragments

Details
Message ID
<20220713192602.2669773-1-me@tadeo.ca>
DKIM signature
missing
Download raw message
Patch: +1 -0
This makes fragments that include other fragments work.
---
 cmd/gqlclientgen/main.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/gqlclientgen/main.go b/cmd/gqlclientgen/main.go
index c3c5f3f..b7a68ac 100644
--- a/cmd/gqlclientgen/main.go
+++ b/cmd/gqlclientgen/main.go
@@ -232,6 +232,7 @@ func collectFragments(frags map[*ast.FragmentDefinition]struct{}, selSet ast.Sel
			collectFragments(frags, sel.SelectionSet)
		case *ast.FragmentSpread:
			frags[sel.Definition] = struct{}{}
			collectFragments(frags, sel.Definition.SelectionSet)
		case *ast.InlineFragment:
			collectFragments(frags, sel.SelectionSet)
		default:
-- 
2.33.3
Details
Message ID
<n3Q9W4HH3P7eE5CjeTjrCRetzLBlW31Hh59GAkZbGAZxvTcQTlJC2_WK-RrByGC1VvACRU6u6z5juZ8u9QCgreEWPuMwqjKfu8QXeDGGAZQ=@emersion.fr>
In-Reply-To
<20220713192602.2669773-1-me@tadeo.ca> (view parent)
DKIM signature
missing
Download raw message
Pushed, thanks!
Reply to thread Export thread (mbox)