-
Notifications
You must be signed in to change notification settings - Fork 0
xQL! #3
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
base: main
Are you sure you want to change the base?
Conversation
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.
It works! 🎉
(Comments are just self-talk during grokking.)
Interesting effect I haven't got the bottom of yet: if you change the status in the query to some prefix of IN-PROGRESS, it still matches Buy Unicorn, unless empty, in which case it matches both todos.
Will play around more tomorrow..!
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.
The "app" part of the page is using const TODOS so the changes in this file are turning off the interactive features
| const INITIAL_QUERY = `[ | ||
| { | ||
| "@context": { | ||
| "icaltzd": "http://www.w3.org/2002/12/cal/icaltzd#" | ||
| }, | ||
| "icaltzd:summary": "?", | ||
| "icaltzd:status": "?" | ||
| } | ||
| ] | ||
| `; |
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.
The implementation of xQL still doesn't support lists
... but that doesn't affect this query because it picks out the Todos and not the todoMVCList
A real demo with real xQL! For now, you'll have to have the
xqlrepo checked out next to this one, and runpnpm buildthere.The implementation of xQL still doesn't support lists, so it's not all that interesting yet, but you can still see it in action!