Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Query logic seems bugged #32

Closed
larssn opened this issue May 15, 2017 · 2 comments
Closed

Query logic seems bugged #32

larssn opened this issue May 15, 2017 · 2 comments

Comments

@larssn
Copy link

larssn commented May 15, 2017

So we've been switching out FirebaseListObservable with the Afo variant.

This has broken the following pretty simply method below.
Before the method DID NOT return sessions that were "completed", but now it does.

Is there something I'm misunderstanding? Could it be getting a cached value? :-)

getCompleted() {
        return this.afoDb.list(`/sessions`, {
            query: {
                orderByChild: 'completed',
                equalTo: true,
                limitToLast: 8
            }
        });
    }

Switching back to FirebaseListObservable makes the query work as expected again.

@adriancarriger
Copy link
Owner

Hi @larssn, yes, it definitely sounds like an issue with the cached value, and this may be a duplicate of issue #9.

If the value is loaded directly from Firebase (skipping the local cache) the query will work, otherwise it will fail. I've made some progress with this on the query-support-3 branch and hope to finish it soon.

Please let me know if this sounds different from issue #9. Thanks!

@larssn
Copy link
Author

larssn commented May 16, 2017

Its probably related, I'll close this as one topic should be enough.

Sorry for not noticing the existing issue!

@larssn larssn closed this as completed May 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants