You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Field#toString should include individual directives instead of DirectivesHolder object reference #4249
Describe the bug
Not sure if this would be considered part of the API, but the toString of most objects in this project is fairly consistent in that it outputs human readable values.
This used to be the case for Field too until version 24/25 where the DirectivesHolder was introduced.
publicStringtoString() {
return"Field{" +
"name='" + name + '\'' +
", alias='" + alias + '\'' +
", arguments=" + arguments +
", directives=" + directives + // <- used to be a List<Directive> now is DirectivesHolder", selectionSet=" + selectionSet +
'}';
}
Because DirectivesHolder doesn't have a toString implementation, if you write any object containing it to a log for example, it will result in something like:
changed the title [-]Field#toString should not include individual directives instead of DirectivesHolder object reference[/-][+]Field#toString should include individual directives instead of DirectivesHolder object reference[/+]on Feb 18, 2026
Activity
[-]Field#toString should not include individual directives instead of DirectivesHolder object reference[/-][+]Field#toString should include individual directives instead of DirectivesHolder object reference[/+]bbakerman commentedon Feb 19, 2026
This has been fixed in the latest code in Dec 2025
#4190
#4195
I am going to close this issue