obsidian-query-language icon indicating copy to clipboard operation
obsidian-query-language copied to clipboard

Is it possible to combine $and with $or in query?

Open patowod opened this issue 3 years ago • 0 comments

I use an oql block in my daily template. It contains the query:

query: { $and: [{"content":"'#waiting"},{"content":"!'#waiting"}]}

The negation is used so the template itself doesn't show up in the results. Now let's say I wanted to add a second pair in the same way. I tried a few combinations and looked into the fuse documentation but somehow can't find the right syntax. Does anyone know if this is possible?

patowod avatar Sep 05 '21 08:09 patowod