0

我编写了以下代码来聚合 php 应用程序中的两个表

    $lookupTwo = array(
        '$lookup'=> array(
            "from" => "studentTbl",
            "localField" => "studentDetailId",
            "foreignField" => "studentId",
            "as" => "recieverDetails"
        )
    );

现在我面临一个问题,该studentDetailId字段存储为字符串并 studentId存储为整数。

上述查询将返回空结果。

  • 在这种情况下是否有可能进行聚合?
4

0 回答 0