MCPcopy Index your code
hub / github.com/NativeScript/firebase / children

Method children

apps/demo/src/plugin-demos/firebase-database.ts:97–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 children() {
98 this.database
99 .ref('/posts')
100 .once('value')
101 .then((res) => {
102 let count = 0;
103 res.forEach((snapshot) => {
104 const val = snapshot.val();
105 console.log('val', 'index', count, val);
106 if (val.likes === 3) {
107 return true;
108 }
109 count++;
110 });
111 });
112 }
113
114 transaction() {
115 this.database

Callers 1

testItMethod · 0.95

Calls 6

onceMethod · 0.65
refMethod · 0.65
forEachMethod · 0.65
valMethod · 0.65
logMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected