小程序向云数据库添加记录时,想添加一个不定长数组内容作为属性列,怎么在data中写明这个不定长数组?

// 云函数入口函数
exports.main = async (event, context) => {
  var arr = event.sportItem;
  cloud.database().collection("stu")
    .add({  //添加数据
      data:{
        _id:event.id,
        password:event.password,
        // arr.forEach(function(item, index){
        //   item:false,
        // }),
      }
    })
}

 

data:{
        _id:event.id,
        password:event.password,
        array:[]
      }