- .--
-
-
- Find all blocks matching multiple conditions – i.e. blocks or their parents containing multiple page or block references.
{{query: {and: [page A](<page A.md>) [page B](<page B.md>) }}} {{query: {and: [articles](<articles.md>) ((block)) }}} {{query: {and: [Tyler Cowen](<Tyler Cowen.md>) ((block)) [econ](<econ.md>) }}}
-
-
Find all blocks matching any of a number of conditions – i.e. blocks or their parents containing any of the selected page or block references.
-
{{query: {or: [page A](<page A.md>) [page B](<page B.md>) }}} {{query: {or: [Zen](<Zen.md>) [Buddhism](<Buddhism.md>) }}} {{query: {or: [Utah](<Utah.md>) [Idaho](<Idaho.md>) [Montana](<Montana.md>) }}}
-
-
- Exclude blocks matching any of the page or block references selected.
{{query: {and: [page A](<page A.md>) {not: [page B](<page B.md>) }}}} {{query: {and: [Slate Star Codex](<Slate Star Codex.md>) {not: [psychiatry](<psychiatry.md>) }}}}
-
- Finds all blocks on daily pages and blocks mentioning a date between two days. ^^This only works on Daily Notes page^^.
- You can use the following as a shorthand: today, tomorrow, yesterday, last week, next week, last month, and next month.
{{query: {between: [January 1st, 2021](<January 1st, 2021.md>) [today](<today.md>) }} {{query: {and: [mistakes](<mistakes.md>) {between: [January 1st, 2020](<January 1st, 2020.md>) [December 31st, 2020](<December 31st, 2020.md>) }}}} {{query: {and: [TODO](<TODO.md>) {between: [last week](<last week.md>) [today](<today.md>) }}}}
-
- ## Community Videos:
-
Query syntax and logic: how to ask Roam questions with queries by Robert Haisfield
-
How Queries Work in Roam Research by R.J. Nestor
-
Roam Research Search Queries by David Perell
-
Insight Hunting with Queries in Roam by Cortex Futura
-
Roam Research Query Tutorial: Pending Tasks for Task Management and Task Dashboard Using Queries by The Upgraded Brain
-
- ## Articles:
- ## Key Commands:
/query
-
- #Daily Notes | #Bidirectional linking | #Linked References #Book | #Sidebar | #Tags | #Evergreen Notes | #Block References | #Templates | #Query
-
{{query}}
#Query -
Big Query
-
Fixed bug that caused Roam to crash when Query
-
You can now show/hide paths of blocks in Query
-
Made Query
#Date picker | #TODO/DONE | #Tags | #Filter | #Linked References | #Query
#roam/css | #Extensions | #roam/js | #Sidebar | #TODO/DONE | #Query
- #Daily Notes | #Bidirectional linking | #Linked References #Book | #Sidebar | #Tags | #Evergreen Notes | #Block References | #Templates | #Query
#Page References | #Daily Notes | #Date picker | #Linked References | #TODO/DONE | #Right Sidebar | #Filter | #Query
#Current time | #Page References | #Right Sidebar | #Linked References | #Query
#Page References | #TODO/DONE | #Query
- #Page References | #Query
- Fixed bug that caused Roam to crash when Query
#roam/css | #Extensions | #roam/js | #Sidebar | #TODO/DONE | #Query
- #Daily Notes | #TODO/DONE | #Page References | #Query
#Current time | #Query
- #Daily Notes | #TODO/DONE | #Page References | #Query
- The "today" function auto generates today's daily notes page, it will either give you a static result, or a variable result ("today" will always point to today's date, rather than a set date) when used in a Query
- The "tomorrow" function auto generates tomorrow's daily notes page, it will either give you a static result, or a variable result ("tomorrow" will always point to tomorrow's date, rather than a set date) when used in a Query
#Current time | #Page References | #Block References | #Indentation | #Daily Notes | #Right Sidebar | #Block Embed | #Alias | #TODO/DONE | #Indentation | #Query
#Page References | #Right Sidebar | #Query
- See Query
- #Attributes | #Query