Created
May 20, 2020 08:32
-
-
Save goofmint/bd5ea174b2c211cdd55a0e80d6c15610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const a_class = ncmb.DataStore('A_class'); | |
const b_class = ncmb.DataStore('B_class'); | |
// ↓ ここ | |
ons.ready(async function() { | |
const result = await a_class.fetchAll(); | |
for (let row of result) { | |
const result2 = await b_class | |
.relatedTo(row, 'tests') | |
.fetchAll(); | |
objectB.push(result2.count); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment