报错:
Class 'MongoDB\Driver\Query' not found in E:\phpstudy_pro\WWW\wci_api\vendor\topthink\think-orm\src\db\builder\Mongo.php:485
追溯文件:
发现引入文件
use MongoDB\BSON\javascript;
use MongoDB\BSON\objectID;
use MongoDB\BSON\Regex;
use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\Command;
use MongoDB\Driver\Exception\InvalidArgumentException;
use MongoDB\Driver\Query as MongoQuery;
use think\db\connector\Mongo as Connection;
use think\db\exception\DbException as Exception;
use think\db\Mongo as Query;
和报错MongoDB\Driver\Query' not found ,在引入文件时也是引入了,不知道报这个错是不是use重命名 引起的