Logseq provides some basic API that:
- can execute both:
- simple queries
- advanced queries
- is used both by:
- plugins
- file
custom.js
- For example, Generate explicit hierarchy out of properties uses custom code to combine the results of various queries into a single structure.