| 3806 | const promises = []; |
| 3807 | for (let i = 0; i < 2; i++) { |
| 3808 | const proc = iter => { |
| 3809 | const child = new Parse.Object('Child'); |
| 3810 | children.push(child); |
| 3811 | const parent = new Parse.Object('Parent'); |
| 3812 | parents.push(parent); |
| 3813 | promises.push( |
| 3814 | child.save().then(() => { |
| 3815 | parents[iter].set('child', [children[iter]]); |
| 3816 | return parents[iter].save(); |
| 3817 | }) |
| 3818 | ); |
| 3819 | }; |
| 3820 | proc(i); |
| 3821 | } |
| 3822 | Promise.all(promises) |
no outgoing calls
no test coverage detected
searching dependent graphs…