Skip to content

orderByChild not working #82

Closed
Closed
@tegument

Description

@tegument

I have items stored in firebase with a 'createdAt' property which is the server TIMESTAMP. The TIMESTAMP value is being set correctly, but when querying using orderByChild('createdAt') the order is not correct.

I have verified that the same query run with the firebase javascript API works as expected:

firestack.database.ref('images').orderByChild('createdAt').once('value', (snapshot)=>{ // snapshot not ordered by correctly });

Firebase javascript API:

firebaseApp.database().ref('images').orderByChild('createdAt').once('value', (snapshot)=>{ // snapshot ordered correctly });

I have an index set in my firebase rules but can't seem to get Firestack to use the orderByChild query

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions