@@ -35,13 +35,6 @@ class QueryAnalyzer {
3535 */
3636 protected $ schema ;
3737
38- /**
39- * Indicates whether any nodes have been resolved.
40- *
41- * @var bool
42- */
43- private static $ nodes_resolved = false ;
44-
4538 /**
4639 * Types that are referenced in the query
4740 *
@@ -656,7 +649,7 @@ public function set_query_models( ?Schema $schema, ?string $query ): array {
656649 */
657650 public function track_nodes ( $ model ) {
658651 if ( isset ( $ model ->id ) && in_array ( get_class ( $ model ), $ this ->get_query_models (), true ) ) {
659- self :: $ nodes_resolved = true ;
652+
660653 // Is this model type part of the requested/returned data in the asked for query?
661654
662655 /**
@@ -680,30 +673,6 @@ public function track_nodes( $model ) {
680673 return $ model ;
681674 }
682675
683- /**
684- * Checks if any nodes have been resolved.
685- *
686- * This method is used to determine whether any nodes (or models)
687- * were successfully resolved during the GraphQL query processing.
688- * It returns the current state of the `nodes_resolved` flag.
689- *
690- * @return bool True if any nodes have been resolved, false otherwise.
691- */
692- public static function areNodesResolved () {
693- return self ::$ nodes_resolved ;
694- }
695-
696- /**
697- * Resets the nodes resolved status.
698- *
699- * This method is called at the beginning of each GraphQL request
700- * to reset the `nodes_resolved` flag. Ensuring that each request
701- * starts with a clean state for tracking whether nodes have been resolved.
702- */
703- public static function resetNodesResolved () {
704- self ::$ nodes_resolved = false ;
705- }
706-
707676 /**
708677 * Returns graphql keys for use in debugging and headers.
709678 *
0 commit comments