[GH-ISSUE #115] .get include with wildcards doesn't work on localStorage/IndexedDB #64

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

Originally created by @Bubz43 on GitHub (Jun 6, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/115

Originally assigned to: @appy-one on GitHub.

When used the node version it works as expected, but with AceBase.WithLocalStorage or AceBase.WithIndexedDB it doesn't.

// Include specific nested data:
db.ref('users/someuser/posts')
  .get({ include: ['*/title', '*/posted'] })
  .then(snap => {
    // snapshot will be an empty object
});

// Combine include & exclude:
db.ref('users/someuser')
  .get({ exclude: ['comments'], include: ['posts/*/title'] })
  .then(snap => {
    // snapshot will exclude comments but won't contain a posts property at all
});

Originally created by @Bubz43 on GitHub (Jun 6, 2022). Original GitHub issue: https://github.com/appy-one/acebase/issues/115 Originally assigned to: @appy-one on GitHub. When used the node version it works as expected, but with `AceBase.WithLocalStorage` or `AceBase.WithIndexedDB` it doesn't. ```js // Include specific nested data: db.ref('users/someuser/posts') .get({ include: ['*/title', '*/posted'] }) .then(snap => { // snapshot will be an empty object }); // Combine include & exclude: db.ref('users/someuser') .get({ exclude: ['comments'], include: ['posts/*/title'] }) .then(snap => { // snapshot will exclude comments but won't contain a posts property at all }); ```
gitea-mirror 2026-05-23 08:28:49 -06:00
Author
Owner

@appy-one commented on GitHub (Jun 6, 2022):

Thanks for reporting! I ran a quick test and was able to reproduce. I'll look into it asap

<!-- gh-comment-id:1147597917 --> @appy-one commented on GitHub (Jun 6, 2022): Thanks for reporting! I ran a quick test and was able to reproduce. I'll look into it asap
Author
Owner

@appy-one commented on GitHub (Jun 7, 2022):

I've published a fix for this in v1.21.3, let me know if all works as expected!

Spread the word contribute Sponsor AceBase

<!-- gh-comment-id:1149090751 --> @appy-one commented on GitHub (Jun 7, 2022): I've published a fix for this in v1.21.3, let me know if all works as expected! [![Spread the word](https://user-images.githubusercontent.com/26569719/169265089-3d593555-e1ad-4390-986b-877ac2c38a47.svg)](https://twitter.com/intent/tweet?button=&url=https://github.com/appy-one/acebase&text=I'm+using+@AcebaseRealtime+in+my+project+to+make+my+life+easier!&button=) [![contribute](https://user-images.githubusercontent.com/26569719/169265318-30c4c6a5-7c89-46a0-a7a2-ef433a8192f4.svg)](https://github.com/appy-one/acebase#contributing) [![Sponsor AceBase](https://user-images.githubusercontent.com/26569719/168233053-8e56b243-4140-40ab-9a30-4cb3cc149bfe.svg)](https://github.com/sponsors/appy-one)
Author
Owner

@Bubz43 commented on GitHub (Jun 7, 2022):

Works great, thanks for the quick fix.

<!-- gh-comment-id:1149123085 --> @Bubz43 commented on GitHub (Jun 7, 2022): Works great, thanks for the quick fix.
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#64
No description provided.