Skip to content

Commit

Permalink
改进find查询方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jun 19, 2019
1 parent d491c78 commit e19d989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connector/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ public function find(BaseQuery $query): array
return $this->builder->select($query, true);
});

$result = $resultSet[0] ?? null;
$result = $resultSet[0] ?? [];
}

return $result;
Expand Down

0 comments on commit e19d989

Please sign in to comment.