const userAV = that.Object()
.createWithoutData(AV.User, user.id).avObject
// const roleAV = that.Object()
// .createWithoutData(AV.Role, role.id).avObject
const roleAV = that.Role('test1')
console.log(roleAV);
const dispatchRequest = () => roleAV.getUsers().add(userAV).save()
return request.call(that, dispatchRequest)
或者我使用createWithoutData创建role对象时总会报错
Cannot read properties of undefined (reading 'save')
add()方法并没有给我返回av对象 而是返回了一个undefined 导致了后面的save方法找不到了