How to query all the pages without the property tags

Hi All,

I would like to find all the pages in my graph without the property tags in order to add it.
How to do?

thanks
Fede

Try this:

#+BEGIN_QUERY
{
 :query [:find (pull ?p [*])
   :where
     [?p :block/name]
     [?p :block/properties ?props]
     (not [(get ?props :tags)])
 ]
}
#+END_QUERY