Open STSMHQ opened 2 weeks ago
What I think the issue is that likely not all your pages have a hum
attribute, so for many hum
will be undefined
and undefined
is not a string :) The question is how to best fix this. One way I can easily implement is have contains
simply return false
whenever the first argument is undefined. I think this would not be such a bad solution. What will probably fix this for you is adding a hum
check before, so where hum and contains(hum, "hotfix")
. Not tested, but that should work.
First of all, thank you for the quick reply and you're totally correct, @zefhemel. When I try the same query with the name field/directive it works (as the name field is present on all notes). Also, I tested your workaround - where hum and contains(hum, "hotfix")
- it also worked perfectly. Of course it would be better to have the first approach that you described - the false
return - implemented, but this workaround will serve my purpose, at least for now. Thank you for suggesting it and have a nice day!
P.S: Feel free to close this issue if you want.
Hi, everyone,
I'm currently experimenting with the query language of SilverBullet (what an incredible feature) and I faced an issue that I honestly don't know if it's a bug or if I'm only being a noob here. For instance, I have this note:
And then in another note, I've this:
But, the following error is presented when I try to render the above query:
Is this normal behavior? And if yes, how can I query tags for specific keywords?