mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 06:02:14 -06:00
[GH-ISSUE #73] Indexed query with double filter on key fails #52
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#52
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 @appy-one on GitHub (Feb 21, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/73
Originally assigned to: @appy-one on GitHub.
When executing a query with multiple filters on an indexed key, execution will return wrong results if the index has include keys, or crash with an
TypeError: Cannot read properties of undefined (reading '[key]')if the index has no include keys.Example:
This is caused by initial index results being filtered on metadata (include) filters, but the index' key is (obviously) not in the metadata. Solution: filter index results on the indexed value if key equals index.key
@appy-one commented on GitHub (Feb 21, 2022):
Published fix in v1.15.0