我遇到了这个错误: 错误错误:必须在索引1处为表单控件提供一个值。 我正在用Angular 9做一个应用程序,问题出在Typescript上。以下代码正在运行: this.registros.controls.arrayProcedimientos.setValue(convert.arrayProcedimientos); 但如果我对数组排序> b.fechaInicioProcedimiento;
//setValue of the sorted a
"A" | "B" | "C" | or it may be null当我调用db.getCollection('mycollection').find().sort({ type: -1 })时,我首先使用type: null获取文档,因为数据是按规范类型排序的,其中null的规范值比数字/字符串低得多
是否有一种方法来形成查询,使空值在最后出现?我已经发现了这个问题,但是在这里建议使用聚合