Need help with queries in Logseq DB (test.logseq.com)

I’m trying out Logseq DB and using test.logseq.com.

I cannot seem to be able to make queries work.

I’m trying a simple one for “get all pages with title Some Page”:

  • I’m typing /query and choosing “Advanced Query”
  • in the code block, I’m typing:
{:query [:find (pull ?p [*])
         :where
         [?p :page/title "Some Page"]]}

0 Live Query results.

What am I doing wrong?

(Thanks, and sorry if this feels basic.)

You need to change “:page/title” to “:block/title” :slight_smile:

Thank you.

I’d have some more questions:

  1. right now I’m trying :block/tags "event" to retrieve pages/blocks tagged “event”, but it doesn’t seem to work
  2. does such a query for blocks/pages tagged with a tag also work with parent tags? (i.e. if I have a page/block tagged invention which extends event, would it be retrieved when querying for blocks tagged event?)
  3. while searching online I’ve found another kind of syntax that goes roughly like this (see below); is this some AI hallucination or some valid alternative? (it doesn’t seem to work)
:query {
  :block/title "Some Page"
}