[{"data":1,"prerenderedAt":630},["ShallowReactive",2],{"/reference/use-cases/queries-in-practice":3,"/reference/use-cases/queries-in-practice-surround":620},{"id":4,"title":5,"body":6,"description":610,"extension":611,"links":612,"meta":613,"navigation":614,"path":616,"seo":617,"stem":618,"__hash__":619},"docs/2.reference/use-cases/queries-in-practice.md","Queries in practice",{"type":7,"value":8,"toc":589},"minimark",[9,12,49,66,71,74,98,105,109,125,130,141,156,162,165,169,177,183,189,193,213,221,237,240,245,248,255,259,278,284,294,301,305,320,338,344,357,361,379,385,389,399,416,421,425,428,431,449,455,465,474,478,494,518,524,528,541,545],[10,11],"capacities-pro-label",{},[13,14,15,20,21,25,26,25,30,34,35,25,39,43,44,48],"p",{},[16,17,19],"a",{"href":18},"/reference/queries","Queries"," are saved filters that stay live. You set rules once (",[16,22,24],{"href":23},"/reference/content-types","object types",", ",[16,27,29],{"href":28},"/reference/properties","properties",[16,31,33],{"href":32},"/reference/tags","tags",", dates), and Capacities keeps showing whatever matches. Because a query is an object, you can pin it beside an ",[16,36,38],{"href":37},"/reference/content-types#object-dashboards","object type dashboard",[16,40,42],{"href":41},"/reference/views#embed-view","embed"," it on a project page, or drop it into a ",[16,45,47],{"href":46},"/reference/templates","template"," so every new person or project starts with the same layout.",[13,50,51,52,56,57,60,61,65],{},"This page is about workflows: what to build, where to put it, and how it behaves day to day. For query types, the filter editor, ",[16,53,55],{"href":54},"/reference/queries#variable-queries","variable queries",", grouping, and limits, use the ",[16,58,59],{"href":18},"Queries reference",". If you are deciding between a saved filter and a hand-picked list, see ",[16,62,64],{"href":63},"/faq/editing/queries-vs-collections","When should I use a query instead of a collection?",".",[67,68,70],"h2",{"id":69},"saving-a-filter-as-a-query","Saving a filter as a query",[13,72,73],{},"You can build queries from scratch, but most people start from a filter they already use.",[13,75,76,77,79,80,84,85,88,89,93,94,97],{},"Open an ",[16,78,38],{"href":37}," and narrow the list until it shows what you want. Use ",[81,82,83],"strong",{},"Filter"," and ",[81,86,87],{},"Sort"," the way you would for a one-off search (",[16,90,92],{"href":91},"/reference/content-types#filtering","filtering","). When the results look right, choose ",[81,95,96],{},"Save as query",", and give it a title and icon. The query is saved as a section on that dashboard.",[13,99,100],{},[101,102],"img",{"alt":103,"src":104},"Save filter and sort as query","/use-cases/saved-filter.png",[67,106,108],{"id":107},"a-bookshelf-that-updates-itself","A bookshelf that updates itself",[13,110,111,112,116,117,121,122,65],{},"Many reading workflows use a Book ",[16,113,115],{"href":114},"/reference/content-types#custom-object-types","object type"," (from the template gallery or your own design) with a ",[16,118,120],{"href":119},"/reference/properties#datetime","datetime property"," such as ",[81,123,124],{},"Finished on",[126,127,129],"h3",{"id":128},"finished-books","Finished books",[13,131,132,133,135,136,140],{},"The only habit you need is to set ",[81,134,124],{}," when you are done. Pair that with a ",[16,137,139],{"href":138},"#maintenance-queries-and-processing-pages","maintenance query"," for books marked done but still missing a date, and your display queries stay trustworthy.",[13,142,143,144,146,147,149,150,152,153,155],{},"Open your Book type from the left sidebar. Click ",[81,145,83],{}," and restrict ",[81,148,124],{}," to the period you care about (this calendar year, or a rolling window like “on or after 1 January”). Sort by ",[81,151,124],{}," so the list reads in chronological order. ",[81,154,96],{}," and name it (for example “Read in 2025”).",[13,157,158],{},[101,159],{"alt":160,"src":161},"Read in 2025","/use-cases/read-in-2025.png",[13,163,164],{},"Each time you complete a book and fill in the date, the query updates automatically.",[126,166,168],{"id":167},"your-tbr-list","Your TBR list",[13,170,171,172,176],{},"Add a ",[16,173,175],{"href":174},"/reference/properties#label-property","label property"," (or tags) for reading status on your Book type. Then build a TBR query by excluding books with your “Done” status.",[13,178,179],{},[101,180],{"alt":181,"src":182},"TBR list","/use-cases/tbr.png",[13,184,185,186,188],{},"For unstarted or in-progress books, use the same pattern with one change: filter where ",[81,187,124],{}," is empty.",[67,190,192],{"id":191},"meetings-embedded-on-a-project-page","Meetings embedded on a project page",[13,194,195,198,199,203,204,207,208,212],{},[16,196,197],{"href":23},"Project"," objects work well as hubs: status, dates, notes, and links to resources. ",[16,200,202],{"href":201},"/reference/use-cases/meeting-notes","Meetings"," fit naturally as a ",[16,205,206],{"href":54},"variable query"," that always lists sessions tied to ",[209,210,211],"em",{},"this"," project.",[13,214,215,216,220],{},"You need an ",[16,217,219],{"href":218},"/reference/properties#object-select","object select property"," linking your Meeting and Project types (create the Project type first, then add the property on Meeting).",[13,222,223,224,228,229,232,233,236],{},"Open a project you are actively working on. On a new line, type ",[225,226,227],"code",{},"/query"," and select your Meeting type. Open ",[81,230,231],{},"Edit query"," and add a filter on the property that links meetings to projects. Instead of choosing one project by name, use the variable that means ",[81,234,235],{},"this object"," so the embed adapts to whichever project page it sits on.",[13,238,239],{},"Sort by meeting date, usually newest first, so the next conversation is at the top and older notes scroll down.",[13,241,242],{},[101,243],{"alt":192,"src":244},"/use-cases/project-meetings.png",[13,246,247],{},"From now on, logging a meeting with that project selected is enough for it to appear here.",[13,249,250,251,254],{},"Add the same embed to your ",[16,252,253],{"href":46},"project template",". New projects open with the meeting list ready. Without variables, you would duplicate the embed per project and change the project name in the filter each time, which does not scale once you have dozens of active projects.",[67,256,258],{"id":257},"a-person-page-as-your-meeting-history","A person page as your meeting history",[13,260,261,262,265,266,269,270,273,274,277],{},"The same pattern applies to ",[16,263,264],{"href":23},"Person"," objects. Open a person and embed a query for 1:1 meetings where the ",[81,267,268],{},"People"," property includes ",[81,271,272],{},"this person",". You get a chronological record on the page you already open before a call. The full ",[16,275,276],{"href":201},"meeting notes"," guide covers templates, calendar capture, and follow-up tasks; this section is only the query embed.",[13,279,280],{},[101,281],{"alt":282,"src":283},"1:1 meetings on a person page","/use-cases/person-page.png",[13,285,286,287,290,291,293],{},"Capacities can offer a ",[81,288,289],{},"New"," action on the query when the rules are specific enough (correct meeting type, person filter filled by the variable, and any other fields you always use). ",[81,292,289],{}," creates a meeting with those properties prefilled.",[13,295,296,297,300],{},"Put the embed on a ",[16,298,299],{"href":46},"person template"," if you work with many contacts the same way. One template change propagates to every person you create afterward.",[67,302,304],{"id":303},"combining-tags-for-reading-and-writing","Combining tags for reading and writing",[13,306,307,310,311,315,316,319],{},[16,308,309],{"href":32},"Tags"," cut across object types. A quote, a web link, and a ",[16,312,314],{"href":313},"/reference/content-types#page","page"," can all share ",[225,317,318],{},"#learning",". The tag page already gathers everything with that tag.",[13,321,322,323,84,326,328,329,332,333,337],{},"Often you need the overlap between two ideas: material tagged with both ",[225,324,325],{},"#creativity",[225,327,318],{},", for example. On a tag page, use ",[81,330,331],{},"Create query with tag",", add the second tag, then save the result as its own query object (",[16,334,336],{"href":335},"/reference/queries#tag-queries","tag queries","). You can rename it, embed it elsewhere, and treat it like any other saved view.",[13,339,340],{},[101,341],{"alt":342,"src":343},"Tag query","/use-cases/tag-query.png",[13,345,346,347,351,352,356],{},"When membership should stay manual within one type, a ",[16,348,350],{"href":349},"/reference/collections","collection"," may still be the better fit. See ",[16,353,355],{"href":354},"/tutorials/tags-vs-collections","Tags vs. collections"," for how tags and collections differ before you rely on queries alone.",[67,358,360],{"id":359},"planning-pages-and-dashboards","Planning pages and dashboards",[13,362,363,364,366,367,370,371,374,375,378],{},"A single ",[16,365,314],{"href":313}," can act as a control centre if you embed several queries and a few pinned objects. Create the queries first (or reuse ones pinned on object dashboards), then open a page and link each query with ",[225,368,369],{},"@",", setting the view to ",[81,372,373],{},"Embed"," (",[16,376,377],{"href":41},"embed view","). Arrange blocks in columns if you want a board-like layout. Yearly planning pages work the same way as weekly ones: the time horizon changes, not the mechanics.",[13,380,381],{},[101,382],{"alt":383,"src":384},"Planning page with embedded queries","/use-cases/2026.png",[67,386,388],{"id":387},"random-resurfacing-query","Random resurfacing query",[13,390,391,392,84,395,398],{},"If you collect many small objects over time (ideas, research blips, quotes), most of them will not be top of mind on any given day. A query with a low ",[81,393,394],{},"Limit results",[81,396,397],{},"random"," order picks a handful each morning so you revisit and extend past notes without building a manual queue.",[13,400,401,402,406,407,411,412,65],{},"Create the query on that object type, set the limit (five is a common starting point), enable random ordering in the query editor (",[16,403,405],{"href":404},"/reference/queries#limit-results","limit and random","), and embed the query in your ",[16,408,410],{"href":409},"/reference/dates-and-daily-notes","daily note template",". Every daily note opens with a different subset. You still write new material in the body; the embed is a prompt, not the whole journal. For a broader daily-note workflow, see ",[16,413,415],{"href":414},"/reference/use-cases/daily-notes","Daily notes",[13,417,418],{},[101,419],{"alt":388,"src":420},"/use-cases/random-quotes.png",[67,422,424],{"id":423},"maintenance-queries-and-processing-pages","Maintenance queries and processing pages",[13,426,427],{},"If your queries depend on properties being filled in, create companion queries that find gaps where those properties are empty. Think of them as maintenance queries.",[13,429,430],{},"On this page, useful maintenance filters include:",[432,433,434,440,443],"ul",{},[435,436,437,438],"li",{},"Books marked done in a status field but with an empty ",[81,439,124],{},[435,441,442],{},"Meetings with no linked project",[435,444,445,446,448],{},"Meetings with an empty ",[81,447,268],{}," property",[13,450,451],{},[101,452],{"alt":453,"src":454},"Adding a filter to a query","/use-cases/maintenace.png",[13,456,457,458,464],{},"To make maintenance easy, create what Beth calls a ",[16,459,463],{"href":460,"rel":461},"https://bethmcclelland.beehiiv.com/p/processing-page",[462],"nofollow","processing page",": a single page where you embed every maintenance query you rely on. Open it on a schedule (or when something looks wrong elsewhere), work down the embeds, and know that finished items will show up in the display queries you use for research, planning, or writing.",[13,466,467,468,470,471,473],{},"The page is quick to build: create a page, type ",[225,469,369],{}," to link each maintenance query, set ",[81,472,373],{},", and arrange blocks in an order that matches how you think (people first, then media, then cleanup). Add or remove embeds whenever your types change.",[126,475,477],{"id":476},"more-maintenance-examples","More maintenance examples",[13,479,480,483,484,25,487,25,490,493],{},[81,481,482],{},"Sources without a type tag."," If one Media or Source type carries books, articles, and podcasts, distinguish them with tags (",[225,485,486],{},"#book",[225,488,489],{},"#article",[225,491,492],{},"#podcast","). A maintenance query filters that type where none of those tags apply. The processing page becomes your inbox for “label what this is” before topic queries and dashboards can trust the tags.",[13,495,496,499,500,374,503,507,508,512,513,517],{},[81,497,498],{},"Objects with no backlinks."," For knowledge work, objects that nothing links to may be stale. A query on Pages (or several types) filtered to ",[81,501,502],{},"no backlinks",[16,504,506],{"href":505},"/reference/queries#filter-by-backlinks-filter-by-context","filter by backlinks",") gives you a review queue: deepen the note, ",[16,509,511],{"href":510},"/tutorials/networked-note-taking","link"," it somewhere useful, or delete it. That keeps display queries and ",[16,514,516],{"href":515},"/reference/views#graph-view","graph views"," from filling up with orphans.",[13,519,520,523],{},[81,521,522],{},"Relations you use in downstream queries."," The same pattern applies to any property your display queries depend on: countries on locations, project links on meetings, status labels on tasks. If the display query filters on it, add a maintenance query where it is empty and park it on the processing page.",[126,525,527],{"id":526},"learning-prompts-on-the-same-page","Learning prompts on the same page",[13,529,530,531,84,533,535,536,540],{},"Maintenance embeds do not have to be chores only. On the same processing page, add a query with a low ",[81,532,394],{},[81,534,397],{}," order (",[16,537,539],{"href":538},"#random-resurfacing-query","random resurfacing query",") over a type you want to explore over time, such as Country or Quote. Each visit surfaces one item you might otherwise never open.",[67,542,544],{"id":543},"where-to-go-next","Where to go next",[432,546,547,552,558,563,569,578,584],{},[435,548,549,551],{},[16,550,59],{"href":18}," for search queries, tag queries, backlinks in filters, and the roadmap",[435,553,554,557],{},[16,555,556],{"href":201},"Meeting notes"," for type setup, calendar capture, and task follow-up",[435,559,560,562],{},[16,561,415],{"href":414}," for inbox habits and review rhythms",[435,564,565,568],{},[16,566,567],{"href":46},"Templates"," to ship embeds on every new object of a type",[435,570,571,84,573,577],{},[16,572,309],{"href":32},[16,574,576],{"href":575},"/tutorials/tags","Working with tags"," if tag queries are central to your setup",[435,579,580,583],{},[16,581,582],{"href":409},"Dates and daily notes"," for calendar behaviour and daily templates",[435,585,586,588],{},[16,587,64],{"href":63}," when you need a manual shortlist instead of a rule",{"title":590,"searchDepth":591,"depth":592,"links":593},"",1,2,[594,595,600,601,602,603,604,605,609],{"id":69,"depth":592,"text":70},{"id":107,"depth":592,"text":108,"children":596},[597,599],{"id":128,"depth":598,"text":129},3,{"id":167,"depth":598,"text":168},{"id":191,"depth":592,"text":192},{"id":257,"depth":592,"text":258},{"id":303,"depth":592,"text":304},{"id":359,"depth":592,"text":360},{"id":387,"depth":592,"text":388},{"id":423,"depth":592,"text":424,"children":606},[607,608],{"id":476,"depth":598,"text":477},{"id":526,"depth":598,"text":527},{"id":543,"depth":592,"text":544},"Workflow guides for bookshelves, project and person hubs, tag combinations, reviews, dashboards, maintenance pages, and daily notes with Capacities queries.","md",null,{},{"icon":615},"i-ph-funnel","/reference/use-cases/queries-in-practice",{"title":5,"description":610},"2.reference/use-cases/queries-in-practice","2MGDO9GZQepRHpXkXPv8SfX107LUbZZXnDoXeopHexc",[621,626],{"title":622,"path":623,"stem":624,"icon":625,"children":-1},"Network of people","/reference/use-cases/network-of-people","2.reference/use-cases/network-of-people","i-ph-share-network",{"title":627,"path":628,"stem":629,"children":-1},"User interface","/reference/user-interface","2.reference/user-interface",1779355245050]