mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 14:12:14 -06:00
[GH-ISSUE #229] ref().get() works while query().get() returns an empty array #106
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JiPaix on GitHub (May 29, 2023).
Original GitHub issue: https://github.com/appy-one/acebase/issues/229
This might just be me not understanding how AceBase works but i'm getting some weird results between
query()andref()A brief example of what's happening
Here's the whole context:
Then somewhere else in the code is called
UserDatabase.isAllowed@appy-one commented on GitHub (May 30, 2023):
refreferences a specific entry in your database, wherequerysearches an object collection by matching each child of the referenced path for given filter conditions.You can simply use
ref:If you want to query all users that have
allowedset totrue, use:Kindly note that instead of rolling your own auth, you might want to use AceBase server's built-in auth. See https://github.com/appy-one/acebase-server and https://github.com/appy-one/acebase-client
Do you like AceBase? 👇🏼