-
Notifications
You must be signed in to change notification settings - Fork 53
feat: new query syntax #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Change: +1.11 kB (+3.8%) Total Size: 30.3 kB
ℹ️ View Unchanged
|
Size Change: 0 B Total Size: 561 B ℹ️ View Unchanged
|
@tanstack/db-example-react-todo
commit: |
The one failing test in this at the moment is fixed by these d2mini PRs: |
I've renamed |
Thanks @DawidWraga, I had a good go at trying to use this pattern (the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a tremendous job!
I love how the queries look now compared to how they were before. Awesome! 🔥
Implements the new query syntax from #170
todo:
features:
from
collectionfrom
subquerywhere
join
collectionjoin
subquerygroupBy
having
orderBy
(with limit+offset)useLiveQuery
useLiveQuery
The main entry point is a new
createLiveQueryCollection
function:this wraps a new
liveQueryCollectionOptions
andcreateCollection
call - the former of which can be used like the otherxxxCollectionOptions
function we have:createLiveQueryCollection
can be called with either a query builder function, or a config object that takes thequery
param as a query builder function.