Skip to content

Add filter builder#29

Merged
garethj2 merged 4 commits intomasterfrom
feat/filter-builder
Mar 17, 2026
Merged

Add filter builder#29
garethj2 merged 4 commits intomasterfrom
feat/filter-builder

Conversation

@garethj2
Copy link
Contributor

Adds a filter builder that takes inspiration from haystack-core (TypeScript).

Instead of building a string, it builds the Filter's AST nodes for improved type checking and handling.

@garethj2 garethj2 requested a review from rracariu March 17, 2026 10:18
@garethj2 garethj2 self-assigned this Mar 17, 2026
@rracariu
Copy link
Contributor

To make this an even more type safe we should utilize the type state patern. This would prevent .or().or() type of utilization.

@garethj2
Copy link
Contributor Author

Yes I think that sounds like a good idea.

@garethj2 garethj2 force-pushed the feat/filter-builder branch from eb95be7 to 22ea6a6 Compare March 17, 2026 11:10
@garethj2 garethj2 merged commit fe407a9 into master Mar 17, 2026
8 checks passed
@garethj2 garethj2 deleted the feat/filter-builder branch March 17, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants