-
Notifications
You must be signed in to change notification settings - Fork 152
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 |
kevin-dp
left a comment
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:
fromcollectionfromsubquerywherejoincollectionjoinsubquerygroupByhavingorderBy(with limit+offset)useLiveQueryuseLiveQueryThe main entry point is a new
createLiveQueryCollectionfunction:this wraps a new
liveQueryCollectionOptionsandcreateCollectioncall - the former of which can be used like the otherxxxCollectionOptionsfunction we have:createLiveQueryCollectioncan be called with either a query builder function, or a config object that takes thequeryparam as a query builder function.