Fork me on GitHub

I’m trying to use datascript from vanilla JS to read my Roam Research export EDN file. However, when I try to run a basic query it fails with Error: Cannot compare :block/uid to :node/title. The exact same query works in Datascript in Clojurescript. Here’s the exact code: Any ideas? Thanks!


the gist of it is: jsedn.parse converts keywords to strings, and datascript leaves them as strings. so in your query, you'll need to surround your attributes in quotes so that datascript knows to compare them as strings


Ah, thanks so much @U4YGF4NGM that fixed it perfectly! Cheers!

🎉 1