我正在使用node server和express,并试图从firestore数据库中获取数据。documents with fields - documents with fields 我尝试将上述所有数据映射到一个数组中,而子资源和注释则嵌套在这个数组中。日志在一个数组中有正确的数据,但当我发回响应时,它只显示1个资源,而且每次都是随机的。难道promise.all不应该在收集完所有数据后再执行块吗?我是否正确地使用了承
我使用这个函数将传递给钩子的一个约束数组从firebase/firestore库转换为一个QueryConstraint数组,它看起来像查询函数所需要的:
function convertArrayQueryClausesArgument of type 'CollectionReference<DocumentData>' is not assignable to parameter of type 'Query<unknownType 'Collect