Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
51a306f
feat: implement field resolver logic in the planner
Noroth Sep 26, 2025
c92100a
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Sep 26, 2025
49ab0e8
feat: update compiler and json builder to resolve fields
Noroth Oct 6, 2025
4e6385d
chore: add mapping for resolve calls
Noroth Oct 7, 2025
234bf5d
feat: handle list types
Noroth Oct 8, 2025
a84ccee
chore: update planner to handle optional types
Noroth Oct 8, 2025
28ab022
chore: add tests for nullable and message types
Noroth Oct 9, 2025
ed61f46
chore: rename function
Noroth Oct 9, 2025
a0f6523
chore: rename directive
Noroth Oct 10, 2025
ade7d91
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Oct 10, 2025
598aafe
feat: add field resolver support for entity calls
Noroth Oct 15, 2025
33e58cb
chore: improvements
Noroth Oct 16, 2025
fb4c820
chore: lint
Noroth Oct 16, 2025
1be8fab
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 16, 2025
46cde41
chore: improve compiler
Noroth Oct 16, 2025
17a06a1
chore: fix nested list traversal
Noroth Oct 16, 2025
c7d5e7d
chore: add length check on type definitions
Noroth Oct 16, 2025
3fa4321
chore: fix makefile
Noroth Oct 16, 2025
4366b23
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 17, 2025
eaea23f
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 19, 2025
5a04f78
chore: improve retrieving field selections from a selection set
Noroth Oct 21, 2025
1ea6b55
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Oct 21, 2025
9e74042
chore: add namespace to directive
Noroth Oct 21, 2025
922dea8
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Oct 21, 2025
0f0811c
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 22, 2025
dc5b630
chore: update directive name
Noroth Oct 22, 2025
af8ea7c
chore: check for exact length
Noroth Oct 22, 2025
cf72a8d
chore: do not swallow error from marshalling
Noroth Oct 22, 2025
329ef61
chore: add comments
Noroth Oct 22, 2025
5021522
chore: improvements
Noroth Oct 22, 2025
39bba4b
chore: remove unnecessary muxes
Noroth Oct 23, 2025
9bae249
chore: use proper type instead of copying
Noroth Oct 23, 2025
6755e2b
chore: reduce number of allocations
Noroth Oct 23, 2025
218eb4c
chore: check error
Noroth Oct 23, 2025
077bfd3
chore: rename file
Noroth Oct 23, 2025
ede645f
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 23, 2025
37db946
chore: improvements
Noroth Oct 24, 2025
1ed5ae6
fix: remove unsafe operation report
Noroth Oct 24, 2025
1aceadb
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 24, 2025
a59091d
fix: traverse list
Noroth Oct 24, 2025
b6625fd
chore: improve memory allocation
Noroth Oct 27, 2025
c8acbda
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 27, 2025
1418287
chore: addressing pr comments
Noroth Oct 28, 2025
59fdcbd
chore: improve variable names and function descriptions
Noroth Oct 28, 2025
49f0dc4
chore: improve naming for directive
Noroth Oct 28, 2025
ca093fe
chore: move function to ast package
Noroth Oct 28, 2025
b5225e8
chore: improve naming
Noroth Oct 28, 2025
c9ebb59
chore: more polishing
Noroth Oct 28, 2025
3eb8439
chore: add more comments
Noroth Oct 28, 2025
c178835
chore: use const
Noroth Oct 28, 2025
555ad44
chore: resolve fields without required fields visitor
Noroth Oct 29, 2025
503be72
feat: add support for composite types in the planner
Noroth Oct 30, 2025
ca0e63d
chore: rename field
Noroth Oct 30, 2025
3eed050
chore: move length check
Noroth Oct 30, 2025
57aaf86
Merge branch 'master' into ludwig/eng-6993-implement-field-resolver-f…
Noroth Oct 30, 2025
1d07c41
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Oct 31, 2025
7875e95
Merge branch 'ludwig/eng-6993-implement-field-resolver-for-graphql-op…
Noroth Oct 31, 2025
b72825d
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
Noroth Oct 31, 2025
f6318c7
chore: rename type
Noroth Oct 31, 2025
22b2b01
feat: implement handling for nested composite types
Noroth Oct 31, 2025
acae814
feat: support composite types in the federation visitor
Noroth Oct 31, 2025
10490e6
chore: fixes incorrect parent mapping and adds tests for the datasource
Noroth Oct 31, 2025
993c92b
chore: add tests for stack
Noroth Oct 31, 2025
34f2b79
chore: remove println
Noroth Oct 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions v2/pkg/ast/ast_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ func (d *Document) SelectionSetHasFieldSelectionWithExactName(set int, name []by
return false, InvalidRef
}

// SelectionSetFieldRefs returns a list of field refs in the selection set.
// It traverses through the field selections of the selection set and returns the actual field refs.
func (d *Document) SelectionSetFieldRefs(set int) (refs []int) {
for _, selectionRef := range d.SelectionSets[set].SelectionRefs {
if d.Selections[selectionRef].Kind == SelectionKindField {
refs = append(refs, d.Selections[selectionRef].Ref)
}
}
return
}

// SelectionSetFieldSelections returns a list of field selection refs in the selection set.
func (d *Document) SelectionSetFieldSelections(set int) (refs []int) {
for _, selectionRef := range d.SelectionSets[set].SelectionRefs {
if d.Selections[selectionRef].Kind == SelectionKindField {
Expand Down
Loading