Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 20, 2020 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/bd5ea174b2c211cdd55a0e80d6c15610 to your computer and use it in GitHub Desktop.
Save goofmint/bd5ea174b2c211cdd55a0e80d6c15610 to your computer and use it in GitHub Desktop.
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