Skip to content
Open
Show file tree
Hide file tree
Changes from 85 commits
Commits
Show all changes
91 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
fad062b
Merge branch 'master' into ludwig/eng-8297-add-interface-support-for-…
Noroth Nov 17, 2025
a165f7b
chore: fix incorrect variable name
Noroth Nov 17, 2025
0d1466b
feat: handle nested types when using composite types in field resolvers
Noroth Nov 17, 2025
33bbb70
chore: lint
Noroth Nov 17, 2025
cf88b88
Merge branch 'master' into ludwig/eng-8297-add-interface-support-for-…
Noroth Nov 17, 2025
730de1a
chore: fix typo
Noroth Nov 18, 2025
9395742
chore: improve naming
Noroth Nov 19, 2025
8517bf3
chore: fix pagination
Noroth Nov 19, 2025
b77dba2
chore: fix imports
Noroth Nov 19, 2025
87ea8e5
chore: improve handling for potential null fields
Noroth Nov 19, 2025
6c0bd40
chore: remove exists
Noroth Nov 21, 2025
331f49a
chore: better function name
Noroth Nov 21, 2025
6ed7f6a
chore: update function comment
Noroth Nov 21, 2025
8bd7847
Merge branch 'master' into ludwig/eng-8297-add-interface-support-for-…
Noroth Nov 24, 2025
d9d3692
chore: ignore nested field resolvers in composite types
Noroth Nov 24, 2025
48dc314
chore: fix error message
Noroth Nov 24, 2025
cbab299
make test parallel
Noroth Nov 24, 2025
2be4f06
chore: add comments
Noroth Nov 24, 2025
6779a3f
chore: return error instead
Noroth Nov 24, 2025
9171864
chore: simplify LeaveField logic
Noroth Nov 25, 2025
08044c2
chore: improve comment
Noroth Nov 25, 2025
881ca36
chore: skip node on duplicate field
Noroth Nov 25, 2025
21c429f
Merge branch 'master' into ludwig/eng-8297-add-interface-support-for-…
Noroth Nov 25, 2025
37df47a
fix: invalid index when skipping duplicate field
Noroth Nov 26, 2025
4b04f32
chore: more improvements
Noroth Nov 26, 2025
ab44255
fix: incorrect error propagation
Noroth Nov 28, 2025
805a7e1
fix: properly include introspection typename
Noroth Nov 28, 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
1 change: 1 addition & 0 deletions v2/pkg/astvisitor/visitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4021,6 +4021,7 @@ func (w *Walker) FieldDefinitionDirectiveArgumentValueByName(field int, directiv
}

// InRootField returns true if the current field is a root field.
// This helper function can be used in EnterField and LeaveField.
func (w *Walker) InRootField() bool {
return w.CurrentKind == ast.NodeKindField &&
len(w.Ancestors) == 2 &&
Expand Down
Loading
Loading