diff --git a/src/main/java/graphql/analysis/QueryVisitorFragmentDefinitionEnvironmentImpl.java b/src/main/java/graphql/analysis/QueryVisitorFragmentDefinitionEnvironmentImpl.java
index <HASH>..<HASH> 100644
--- a/src/main/java/graphql/analysis/QueryVisitorFragmentDefinitionEnvironmentImpl.java
+++ b/src/main/java/graphql/analysis/QueryVisitorFragmentDefinitionEnvironmentImpl.java
@@ -45,5 +45,12 @@ public class QueryVisitorFragmentDefinitionEnvironmentImpl implements QueryVisit
     public int hashCode() {
         return Objects.hash(fragmentDefinition);
     }
+
+    @Override
+    public String toString() {
+        return "QueryVisitorFragmentDefinitionEnvironmentImpl{" +
+                "fragmentDefinition=" + fragmentDefinition +
+                '}';
+    }
 }
Add support for visiting fragments in QueryVisitior. PR feedback