15 files declare their use of QueryInterface

ConfigEntityStorageTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php
config_test.module in core/modules/config/tests/config_test/config_test.module
DrupalTest.php in core/tests/Drupal/Tests/Core/DrupalTest.php
EntityListBuilder.php in core/lib/Drupal/Core/Entity/EntityListBuilder.php
EntityResource.php in core/modules/jsonapi/src/Controller/EntityResource.php
EntityStorageBase.php in core/lib/Drupal/Core/Entity/EntityStorageBase.php
field_test.module in core/modules/field/tests/modules/field_test/field_test.module
Helper module for the Field API tests.
Filter.php in core/modules/jsonapi/src/Query/Filter.php
LayoutBuilderIsActiveCacheContextTest.php in core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php
MakeUniqueEntityFieldTest.php in core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php
Query.php in core/lib/Drupal/Core/Config/Entity/Query/Query.php
Query.php in core/lib/Drupal/Core/Entity/Query/Sql/Query.php
Query.php in core/lib/Drupal/Core/Entity/Query/Null/Query.php
SqlContentEntityStorage.php in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
TemporaryQueryGuard.php in core/modules/jsonapi/src/Access/TemporaryQueryGuard.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.