GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Field#toString should include individual directives instead of DirectivesHolder object reference · Issue #4249 · graphql-java/graphql-java

Field#toString should include individual directives instead of DirectivesHolder object reference #4249

New issue
Copy link
New issue
Copy link
Closed
Closed
Field#toString should include individual directives instead of DirectivesHolder object reference#4249
Copy link

Description

@oryan-block
oryan-block
opened on Feb 18, 2026
Issue body actions

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.

public String toString() {
    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:

SelectionSet{selections=[Field{name='description', alias='null', arguments=[], directives=graphql.language.NodeUtil$DirectivesHolder@64e8d216, selectionSet=null}]}

Would be nice if this were to be fixed.

Activity

  1. oryan-block
    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
  2. bbakerman commented on Feb 19, 2026

    @bbakerman
    bbakerman
    on Feb 19, 2026
    Member
    More actions

    This has been fixed in the latest code in Dec 2025

    #4190

    #4195

    I am going to close this issue

    Reacted by Oryan
  3. bbakerman
    closed this as completedon Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.