datascript icon indicating copy to clipboard operation
datascript copied to clipboard

javascript query building

Open FalseProtagonist opened this issue 4 years ago • 2 comments

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

FalseProtagonist avatar Dec 15 '20 13:12 FalseProtagonist

I’m sorry, I don’t know. Maybe it’s worth building one?

tonsky avatar Dec 15 '20 16:12 tonsky

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

tangjeff0 avatar Feb 05 '21 00:02 tangjeff0