[PR #210] [MERGED] Allow wildcard path queries with given filter values #165

Closed
opened 2026-05-23 08:32:25 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase/pull/210
Author: @appy-one
Created: 4/3/2023
Status: Merged
Merged: 4/10/2023
Merged by: @appy-one

Base: masterHead: feature/allow-wildcard-queries-with-explicit-filter-values


📝 Commits (5)

  • d74130e allow wildcard path queries w/given filter values
  • 14ef3b1 using updated acebase-core types
  • 6324629 use renamed export
  • 7d786ea type fix
  • e292238 use updated acebase-core package

📊 Changes

5 files changed (+97 additions, -19 deletions)

View changed files

📝 package-lock.json (+6 -6)
📝 package.json (+1 -1)
📝 src/api-local.ts (+2 -2)
📝 src/query.ts (+72 -10)
📝 src/test/query.spec.ts (+16 -0)

📄 Description

Allows queries to be executed on non-indexed paths with $variables if values for those variables are passed as a filter.

Example:

const messageCount = await db.query('users/$username/messages').filter('$username', 'in', ['user1', 'user2']).count();

Above essentially performs 2 queries (for user1 and user2) and combines the results


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appy-one/acebase/pull/210 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 4/3/2023 **Status:** ✅ Merged **Merged:** 4/10/2023 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `feature/allow-wildcard-queries-with-explicit-filter-values` --- ### 📝 Commits (5) - [`d74130e`](https://github.com/appy-one/acebase/commit/d74130e798d4eb1c1fe6c1398195ff3bc379e3ae) allow wildcard path queries w/given filter values - [`14ef3b1`](https://github.com/appy-one/acebase/commit/14ef3b135ad2e9eb0b106e92ea974870786f44fa) using updated acebase-core types - [`6324629`](https://github.com/appy-one/acebase/commit/6324629a6c83d8584e03669bd50544a902607cea) use renamed export - [`7d786ea`](https://github.com/appy-one/acebase/commit/7d786eacc3186990c7bdadbdb2be0226d0f81523) type fix - [`e292238`](https://github.com/appy-one/acebase/commit/e292238ffbb701af2a38f7a45ac90267c9ac3f3e) use updated acebase-core package ### 📊 Changes **5 files changed** (+97 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+6 -6) 📝 `package.json` (+1 -1) 📝 `src/api-local.ts` (+2 -2) 📝 `src/query.ts` (+72 -10) 📝 `src/test/query.spec.ts` (+16 -0) </details> ### 📄 Description Allows queries to be executed on non-indexed paths with $variables if values for those variables are passed as a filter. Example: ```js const messageCount = await db.query('users/$username/messages').filter('$username', 'in', ['user1', 'user2']).count(); ``` Above essentially performs 2 queries (for user1 and user2) and combines the results --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:32:25 -06:00
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#165
No description provided.