此类情况出现在 需要使用字符串/数组,实际却使用了对象。
解决方式是调试数据,对数据类型进行转换即可。
Link:https://www.cnblogs.com/farwish/p/14183161.html
[FAQ] Cannot use object of type MongoInt64 as array
原文:https://www.cnblogs.com/farwish/p/14183161.html