datascript
datascript copied to clipboard
javascript query building
Is there a recommended/standard/supported way to compose queries in javascript in a more flexible/native way than through writing it all into a string?
I saw that datascript-mori exists, but seems heavyweight and didn't show example for query
I’m sorry, I don’t know. Maybe it’s worth building one?
Actually Homebase is doing this:
https://github.com/homebaseio/homebase-react/blob/d8584e3fe37bf44fe5152692458982a380ba29cf/src/js_gen/todo-example.js#L128-L135 https://github.com/homebaseio/homebase-react/blob/d8584e3fe37bf44fe5152692458982a380ba29cf/src/homebase/js.cljs#L183-L196