[GH-ISSUE #40] I can't get count of children #32

Closed
opened 2026-05-23 08:26:49 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @topapp2030 on GitHub (Jul 29, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/40

Originally assigned to: @appy-one on GitHub.

I can't get count of children
come out to me undefined

import { AceBase } from 'acebase'
const db = AceBase.WithIndexedDB('my_db'); // browser

function fPush(){
db.ref('game/config').push({name: 'name 1' , test : 1})
}

async function getCount(){
  const valCount = await db.ref('game/config').count()
  console.log(valCount );  // undefined
}
Originally created by @topapp2030 on GitHub (Jul 29, 2021). Original GitHub issue: https://github.com/appy-one/acebase/issues/40 Originally assigned to: @appy-one on GitHub. I can't get count of children come out to me undefined ``` import { AceBase } from 'acebase' const db = AceBase.WithIndexedDB('my_db'); // browser function fPush(){ db.ref('game/config').push({name: 'name 1' , test : 1}) } async function getCount(){ const valCount = await db.ref('game/config').count() console.log(valCount ); // undefined } ```
gitea-mirror 2026-05-23 08:26:49 -06:00
  • closed this issue
  • added the
    IndexedDB
    label
Author
Owner

@appy-one commented on GitHub (Aug 13, 2021):

It appears count wasn't implemented for the browser yet. I'll publish an update today

<!-- gh-comment-id:898486945 --> @appy-one commented on GitHub (Aug 13, 2021): It appears `count` wasn't implemented for the browser yet. I'll publish an update today
Author
Owner

@appy-one commented on GitHub (Aug 13, 2021):

Fixed and published with v1.8.3

<!-- gh-comment-id:898507671 --> @appy-one commented on GitHub (Aug 13, 2021): Fixed and published with v1.8.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#32
No description provided.