[{"data":1,"prerenderedAt":2712},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-working-with-content-reading":478,"-docs-core-working-with-content-reading-surround":2707},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":147,"body":480,"description":2701,"extension":2702,"links":2703,"meta":2704,"navigation":657,"path":148,"seo":2705,"stem":149,"__hash__":2706},"docs\u002Fdocs\u002F1.core\u002F3.working-with-content\u002F1.reading.md",{"type":481,"value":482,"toc":2691},"minimark",[483,487,589,594,614,1456,1515,1519,1522,1677,1687,1754,1791,1795,1800,1809,1860,1872,1876,1879,1896,1999,2010,2016,2099,2146,2150,2153,2164,2179,2401,2411,2417,2425,2429,2440,2566,2602,2605,2627,2650,2657,2661,2687],[484,485,486],"p",{},"Your server code reads content with direct calls on the CMS instance. There is no HTTP in between, and the result types come from your schema.",[488,489,494],"pre",{"className":490,"code":491,"language":492,"meta":493,"style":493},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const posts = await cms.find(\"posts\", { where: { category: \"news\" }, limit: 5 });\n","ts","",[495,496,497],"code",{"__ignoreMap":493},[498,499,502,506,510,514,518,521,524,528,531,534,538,540,543,546,550,553,555,558,560,563,566,568,571,574,576,580,583,586],"span",{"class":500,"line":501},"line",1,[498,503,505],{"class":504},"spNyl","const",[498,507,509],{"class":508},"sTEyZ"," posts ",[498,511,513],{"class":512},"sMK4o","=",[498,515,517],{"class":516},"s7zQu"," await",[498,519,520],{"class":508}," cms",[498,522,523],{"class":512},".",[498,525,527],{"class":526},"s2Zo4","find",[498,529,530],{"class":508},"(",[498,532,533],{"class":512},"\"",[498,535,537],{"class":536},"sfazB","posts",[498,539,533],{"class":512},[498,541,542],{"class":512},",",[498,544,545],{"class":512}," {",[498,547,549],{"class":548},"swJcz"," where",[498,551,552],{"class":512},":",[498,554,545],{"class":512},[498,556,557],{"class":548}," category",[498,559,552],{"class":512},[498,561,562],{"class":512}," \"",[498,564,565],{"class":536},"news",[498,567,533],{"class":512},[498,569,570],{"class":512}," },",[498,572,573],{"class":548}," limit",[498,575,552],{"class":512},[498,577,579],{"class":578},"sbssI"," 5",[498,581,582],{"class":512}," }",[498,584,585],{"class":508},")",[498,587,588],{"class":512},";\n",[590,591,593],"h2",{"id":592},"the-local-api","The local API",[484,595,596,597,601,602,605,606,609,610,613],{},"The ",[598,599,600],"strong",{},"local API"," is the set of methods on the instance that ",[495,603,604],{},"tenon.config.ts"," exports, like ",[495,607,608],{},"cms.find()"," and ",[495,611,612],{},"cms.getGlobal()",". The methods are the same in every framework. Only the way a page gets the instance differs:",[615,616,618,825,1050],"code-group",{"sync":617},"framework",[488,619,624],{"className":620,"code":621,"filename":622,"language":623,"meta":493,"style":493},"language-astro shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\nexport const prerender = false;\n\nconst post = await Astro.locals.tenon.findOne(\"posts\", {\n  where: { slug: Astro.params.slug },\n});\nif (!post) return new Response(null, { status: 404 });\n---\n\n\u003Ch1>{post.title}\u003C\u002Fh1>\n","src\u002Fpages\u002Fposts\u002F[slug].astro","astro",[495,625,626,632,652,659,702,732,742,787,792,797],{"__ignoreMap":493},[498,627,628],{"class":500,"line":501},[498,629,631],{"class":630},"sHwdD","---\n",[498,633,635,638,641,644,646,650],{"class":500,"line":634},2,[498,636,637],{"class":516},"export",[498,639,640],{"class":504}," const",[498,642,643],{"class":508}," prerender ",[498,645,513],{"class":512},[498,647,649],{"class":648},"sfNiH"," false",[498,651,588],{"class":512},[498,653,655],{"class":500,"line":654},3,[498,656,658],{"emptyLinePlaceholder":657},true,"\n",[498,660,662,664,667,669,671,674,676,679,681,684,686,689,691,693,695,697,699],{"class":500,"line":661},4,[498,663,505],{"class":504},[498,665,666],{"class":508}," post ",[498,668,513],{"class":512},[498,670,517],{"class":516},[498,672,673],{"class":508}," Astro",[498,675,523],{"class":512},[498,677,678],{"class":508},"locals",[498,680,523],{"class":512},[498,682,683],{"class":508},"tenon",[498,685,523],{"class":512},[498,687,688],{"class":526},"findOne",[498,690,530],{"class":508},[498,692,533],{"class":512},[498,694,537],{"class":536},[498,696,533],{"class":512},[498,698,542],{"class":512},[498,700,701],{"class":512}," {\n",[498,703,705,708,710,712,715,717,719,721,724,726,729],{"class":500,"line":704},5,[498,706,707],{"class":548},"  where",[498,709,552],{"class":512},[498,711,545],{"class":512},[498,713,714],{"class":548}," slug",[498,716,552],{"class":512},[498,718,673],{"class":508},[498,720,523],{"class":512},[498,722,723],{"class":508},"params",[498,725,523],{"class":512},[498,727,728],{"class":508},"slug ",[498,730,731],{"class":512},"},\n",[498,733,735,738,740],{"class":500,"line":734},6,[498,736,737],{"class":512},"}",[498,739,585],{"class":508},[498,741,588],{"class":512},[498,743,745,748,751,754,757,760,763,766,768,771,773,776,778,781,783,785],{"class":500,"line":744},7,[498,746,747],{"class":516},"if",[498,749,750],{"class":508}," (",[498,752,753],{"class":512},"!",[498,755,756],{"class":508},"post) ",[498,758,759],{"class":516},"return",[498,761,762],{"class":512}," new",[498,764,765],{"class":526}," Response",[498,767,530],{"class":508},[498,769,770],{"class":512},"null,",[498,772,545],{"class":512},[498,774,775],{"class":548}," status",[498,777,552],{"class":512},[498,779,780],{"class":578}," 404",[498,782,582],{"class":512},[498,784,585],{"class":508},[498,786,588],{"class":512},[498,788,790],{"class":500,"line":789},8,[498,791,631],{"class":630},[498,793,795],{"class":500,"line":794},9,[498,796,658],{"emptyLinePlaceholder":657},[498,798,800,803,806,809,812,814,817,820,822],{"class":500,"line":799},10,[498,801,802],{"class":512},"\u003C",[498,804,805],{"class":548},"h1",[498,807,808],{"class":512},">{",[498,810,811],{"class":508},"post",[498,813,523],{"class":512},[498,815,816],{"class":508},"title",[498,818,819],{"class":512},"}\u003C\u002F",[498,821,805],{"class":548},[498,823,824],{"class":512},">\n",[488,826,831],{"className":827,"code":828,"filename":829,"language":830,"meta":493,"style":493},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst route = useRoute();\nconst { data: post } = await useTenon().findOne(\"posts\", () => ({\n  where: { slug: String(route.params.slug) },\n}));\nif (!post.value) throw createError({ statusCode: 404 });\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Ch1>{{ post?.title }}\u003C\u002Fh1>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Fposts\u002F[slug].vue","vue",[495,832,833,856,873,923,952,961,1000,1009,1013,1022,1041],{"__ignoreMap":493},[498,834,835,837,840,843,846,848,850,852,854],{"class":500,"line":501},[498,836,802],{"class":512},[498,838,839],{"class":548},"script",[498,841,842],{"class":504}," setup",[498,844,845],{"class":504}," lang",[498,847,513],{"class":512},[498,849,533],{"class":512},[498,851,492],{"class":536},[498,853,533],{"class":512},[498,855,824],{"class":512},[498,857,858,860,863,865,868,871],{"class":500,"line":634},[498,859,505],{"class":504},[498,861,862],{"class":508}," route ",[498,864,513],{"class":512},[498,866,867],{"class":526}," useRoute",[498,869,870],{"class":508},"()",[498,872,588],{"class":512},[498,874,875,877,879,882,884,886,888,891,893,896,898,900,902,904,906,908,910,912,915,918,920],{"class":500,"line":654},[498,876,505],{"class":504},[498,878,545],{"class":512},[498,880,881],{"class":548}," data",[498,883,552],{"class":512},[498,885,666],{"class":508},[498,887,737],{"class":512},[498,889,890],{"class":512}," =",[498,892,517],{"class":516},[498,894,895],{"class":526}," useTenon",[498,897,870],{"class":508},[498,899,523],{"class":512},[498,901,688],{"class":526},[498,903,530],{"class":508},[498,905,533],{"class":512},[498,907,537],{"class":536},[498,909,533],{"class":512},[498,911,542],{"class":512},[498,913,914],{"class":512}," ()",[498,916,917],{"class":504}," =>",[498,919,750],{"class":508},[498,921,922],{"class":512},"{\n",[498,924,925,927,929,931,933,935,938,941,943,945,947,950],{"class":500,"line":661},[498,926,707],{"class":548},[498,928,552],{"class":512},[498,930,545],{"class":512},[498,932,714],{"class":548},[498,934,552],{"class":512},[498,936,937],{"class":526}," String",[498,939,940],{"class":508},"(route",[498,942,523],{"class":512},[498,944,723],{"class":508},[498,946,523],{"class":512},[498,948,949],{"class":508},"slug) ",[498,951,731],{"class":512},[498,953,954,956,959],{"class":500,"line":704},[498,955,737],{"class":512},[498,957,958],{"class":508},"))",[498,960,588],{"class":512},[498,962,963,965,967,969,971,973,976,979,982,984,987,990,992,994,996,998],{"class":500,"line":734},[498,964,747],{"class":516},[498,966,750],{"class":508},[498,968,753],{"class":512},[498,970,811],{"class":508},[498,972,523],{"class":512},[498,974,975],{"class":508},"value) ",[498,977,978],{"class":516},"throw",[498,980,981],{"class":526}," createError",[498,983,530],{"class":508},[498,985,986],{"class":512},"{",[498,988,989],{"class":548}," statusCode",[498,991,552],{"class":512},[498,993,780],{"class":578},[498,995,582],{"class":512},[498,997,585],{"class":508},[498,999,588],{"class":512},[498,1001,1002,1005,1007],{"class":500,"line":744},[498,1003,1004],{"class":512},"\u003C\u002F",[498,1006,839],{"class":548},[498,1008,824],{"class":512},[498,1010,1011],{"class":500,"line":789},[498,1012,658],{"emptyLinePlaceholder":657},[498,1014,1015,1017,1020],{"class":500,"line":794},[498,1016,802],{"class":512},[498,1018,1019],{"class":548},"template",[498,1021,824],{"class":512},[498,1023,1024,1027,1029,1032,1035,1037,1039],{"class":500,"line":799},[498,1025,1026],{"class":512},"  \u003C",[498,1028,805],{"class":548},[498,1030,1031],{"class":512},">",[498,1033,1034],{"class":508},"{{ post?.title }}",[498,1036,1004],{"class":512},[498,1038,805],{"class":548},[498,1040,824],{"class":512},[498,1042,1044,1046,1048],{"class":500,"line":1043},11,[498,1045,1004],{"class":512},[498,1047,1019],{"class":548},[498,1049,824],{"class":512},[488,1051,1056],{"className":1052,"code":1053,"filename":1054,"language":1055,"meta":493,"style":493},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createFileRoute, notFound } from \"@tanstack\u002Freact-router\";\nimport { createServerFn } from \"@tanstack\u002Freact-start\";\nimport cms from \"..\u002F..\u002F..\u002Ftenon.config\";\n\nconst getPost = createServerFn()\n  .validator((slug: string) => slug)\n  .handler(async ({ data: slug }) => {\n    const post = await cms.findOne(\"posts\", { where: { slug } });\n    if (!post) throw notFound();\n    return post;\n  });\n\nexport const Route = createFileRoute(\"\u002Fposts\u002F$slug\")({\n  loader: ({ params }) => getPost({ data: params.slug }),\n  component: Post,\n});\n\nfunction Post() {\n  const post = Route.useLoaderData();\n  return \u003Ch1>{post.title}\u003C\u002Fh1>;\n}\n","src\u002Froutes\u002Fposts\u002F$slug.tsx","tsx",[495,1057,1058,1087,1109,1128,1132,1146,1175,1203,1249,1271,1280,1289,1294,1322,1363,1376,1385,1390,1402,1424,1450],{"__ignoreMap":493},[498,1059,1060,1063,1065,1068,1070,1073,1075,1078,1080,1083,1085],{"class":500,"line":501},[498,1061,1062],{"class":516},"import",[498,1064,545],{"class":512},[498,1066,1067],{"class":508}," createFileRoute",[498,1069,542],{"class":512},[498,1071,1072],{"class":508}," notFound",[498,1074,582],{"class":512},[498,1076,1077],{"class":516}," from",[498,1079,562],{"class":512},[498,1081,1082],{"class":536},"@tanstack\u002Freact-router",[498,1084,533],{"class":512},[498,1086,588],{"class":512},[498,1088,1089,1091,1093,1096,1098,1100,1102,1105,1107],{"class":500,"line":634},[498,1090,1062],{"class":516},[498,1092,545],{"class":512},[498,1094,1095],{"class":508}," createServerFn",[498,1097,582],{"class":512},[498,1099,1077],{"class":516},[498,1101,562],{"class":512},[498,1103,1104],{"class":536},"@tanstack\u002Freact-start",[498,1106,533],{"class":512},[498,1108,588],{"class":512},[498,1110,1111,1113,1116,1119,1121,1124,1126],{"class":500,"line":654},[498,1112,1062],{"class":516},[498,1114,1115],{"class":508}," cms ",[498,1117,1118],{"class":516},"from",[498,1120,562],{"class":512},[498,1122,1123],{"class":536},"..\u002F..\u002F..\u002Ftenon.config",[498,1125,533],{"class":512},[498,1127,588],{"class":512},[498,1129,1130],{"class":500,"line":661},[498,1131,658],{"emptyLinePlaceholder":657},[498,1133,1134,1136,1139,1141,1143],{"class":500,"line":704},[498,1135,505],{"class":504},[498,1137,1138],{"class":508}," getPost ",[498,1140,513],{"class":512},[498,1142,1095],{"class":526},[498,1144,1145],{"class":508},"()\n",[498,1147,1148,1151,1154,1156,1158,1162,1164,1168,1170,1172],{"class":500,"line":734},[498,1149,1150],{"class":512},"  .",[498,1152,1153],{"class":526},"validator",[498,1155,530],{"class":508},[498,1157,530],{"class":512},[498,1159,1161],{"class":1160},"sHdIc","slug",[498,1163,552],{"class":512},[498,1165,1167],{"class":1166},"sBMFI"," string",[498,1169,585],{"class":512},[498,1171,917],{"class":504},[498,1173,1174],{"class":508}," slug)\n",[498,1176,1177,1179,1182,1184,1187,1190,1192,1194,1196,1199,1201],{"class":500,"line":744},[498,1178,1150],{"class":512},[498,1180,1181],{"class":526},"handler",[498,1183,530],{"class":508},[498,1185,1186],{"class":504},"async",[498,1188,1189],{"class":512}," ({",[498,1191,881],{"class":548},[498,1193,552],{"class":512},[498,1195,714],{"class":1160},[498,1197,1198],{"class":512}," })",[498,1200,917],{"class":504},[498,1202,701],{"class":512},[498,1204,1205,1208,1211,1213,1215,1217,1219,1221,1223,1225,1227,1229,1231,1233,1235,1237,1239,1241,1243,1245,1247],{"class":500,"line":789},[498,1206,1207],{"class":504},"    const",[498,1209,1210],{"class":508}," post",[498,1212,890],{"class":512},[498,1214,517],{"class":516},[498,1216,520],{"class":508},[498,1218,523],{"class":512},[498,1220,688],{"class":526},[498,1222,530],{"class":548},[498,1224,533],{"class":512},[498,1226,537],{"class":536},[498,1228,533],{"class":512},[498,1230,542],{"class":512},[498,1232,545],{"class":512},[498,1234,549],{"class":548},[498,1236,552],{"class":512},[498,1238,545],{"class":512},[498,1240,714],{"class":508},[498,1242,582],{"class":512},[498,1244,582],{"class":512},[498,1246,585],{"class":548},[498,1248,588],{"class":512},[498,1250,1251,1254,1256,1258,1260,1263,1265,1267,1269],{"class":500,"line":794},[498,1252,1253],{"class":516},"    if",[498,1255,750],{"class":548},[498,1257,753],{"class":512},[498,1259,811],{"class":508},[498,1261,1262],{"class":548},") ",[498,1264,978],{"class":516},[498,1266,1072],{"class":526},[498,1268,870],{"class":548},[498,1270,588],{"class":512},[498,1272,1273,1276,1278],{"class":500,"line":799},[498,1274,1275],{"class":516},"    return",[498,1277,1210],{"class":508},[498,1279,588],{"class":512},[498,1281,1282,1285,1287],{"class":500,"line":1043},[498,1283,1284],{"class":512},"  }",[498,1286,585],{"class":508},[498,1288,588],{"class":512},[498,1290,1292],{"class":500,"line":1291},12,[498,1293,658],{"emptyLinePlaceholder":657},[498,1295,1297,1299,1301,1304,1306,1308,1310,1312,1315,1317,1320],{"class":500,"line":1296},13,[498,1298,637],{"class":516},[498,1300,640],{"class":504},[498,1302,1303],{"class":508}," Route ",[498,1305,513],{"class":512},[498,1307,1067],{"class":526},[498,1309,530],{"class":508},[498,1311,533],{"class":512},[498,1313,1314],{"class":536},"\u002Fposts\u002F$slug",[498,1316,533],{"class":512},[498,1318,1319],{"class":508},")(",[498,1321,922],{"class":512},[498,1323,1325,1328,1330,1332,1335,1337,1339,1342,1344,1346,1348,1350,1352,1354,1356,1358,1360],{"class":500,"line":1324},14,[498,1326,1327],{"class":526},"  loader",[498,1329,552],{"class":512},[498,1331,1189],{"class":512},[498,1333,1334],{"class":1160}," params",[498,1336,1198],{"class":512},[498,1338,917],{"class":504},[498,1340,1341],{"class":526}," getPost",[498,1343,530],{"class":508},[498,1345,986],{"class":512},[498,1347,881],{"class":548},[498,1349,552],{"class":512},[498,1351,1334],{"class":508},[498,1353,523],{"class":512},[498,1355,728],{"class":508},[498,1357,737],{"class":512},[498,1359,585],{"class":508},[498,1361,1362],{"class":512},",\n",[498,1364,1366,1369,1371,1374],{"class":500,"line":1365},15,[498,1367,1368],{"class":548},"  component",[498,1370,552],{"class":512},[498,1372,1373],{"class":508}," Post",[498,1375,1362],{"class":512},[498,1377,1379,1381,1383],{"class":500,"line":1378},16,[498,1380,737],{"class":512},[498,1382,585],{"class":508},[498,1384,588],{"class":512},[498,1386,1388],{"class":500,"line":1387},17,[498,1389,658],{"emptyLinePlaceholder":657},[498,1391,1393,1396,1398,1400],{"class":500,"line":1392},18,[498,1394,1395],{"class":504},"function",[498,1397,1373],{"class":526},[498,1399,870],{"class":512},[498,1401,701],{"class":512},[498,1403,1405,1408,1410,1412,1415,1417,1420,1422],{"class":500,"line":1404},19,[498,1406,1407],{"class":504},"  const",[498,1409,1210],{"class":508},[498,1411,890],{"class":512},[498,1413,1414],{"class":508}," Route",[498,1416,523],{"class":512},[498,1418,1419],{"class":526},"useLoaderData",[498,1421,870],{"class":548},[498,1423,588],{"class":512},[498,1425,1427,1430,1433,1435,1437,1439,1441,1443,1445,1447],{"class":500,"line":1426},20,[498,1428,1429],{"class":516},"  return",[498,1431,1432],{"class":512}," \u003C",[498,1434,805],{"class":548},[498,1436,808],{"class":512},[498,1438,811],{"class":508},[498,1440,523],{"class":512},[498,1442,816],{"class":508},[498,1444,819],{"class":512},[498,1446,805],{"class":548},[498,1448,1449],{"class":512},">;\n",[498,1451,1453],{"class":500,"line":1452},21,[498,1454,1455],{"class":512},"}\n",[1457,1458,1459,1470,1509],"tabs",{"sync":617},[1460,1461,1462,1465,1466,1469],"tabs-item",{"label":364},[495,1463,1464],{},"Astro.locals.tenon"," is the instance for the current request. A page with ",[495,1467,1468],{},"prerender = false"," reads on each request. A prerendered page reads once, at build time.",[1460,1471,1472,1493],{"label":368},[484,1473,1474,1477,1478,1480,1481,1480,1483,609,1486,1489,1490,523],{},[495,1475,1476],{},"useTenon()"," is auto-imported. It has the read methods ",[495,1479,527],{},", ",[495,1482,688],{},[495,1484,1485],{},"findById",[495,1487,1488],{},"getGlobal",", and returns the result of ",[495,1491,1492],{},"useAsyncData",[1494,1495,1496,1500,1503],"ul",{},[1497,1498,1499],"li",{},"Pass the options as a getter when they depend on the route. A reused page then reads again on navigation.",[1497,1501,1502],{},"During server rendering, the read stays in the process. On client-side navigation, it calls the HTTP API.",[1497,1504,1505,1506,523],{},"For writes and other methods, a server route imports the instance from ",[495,1507,1508],{},"#tenon\u002Fconfig",[1460,1510,1511,1512,1514],{"label":372},"Loaders run in the browser too, so read inside a server function and import the instance from ",[495,1513,604],{},". A server function always runs on the server.",[590,1516,1518],{"id":1517},"find-documents","Find documents",[484,1520,1521],{},"Four methods read content:",[488,1523,1525],{"className":490,"code":1524,"language":492,"meta":493,"style":493},"\u002F\u002F Every post, newest first\nawait cms.find(\"posts\");\n\n\u002F\u002F The first match, or undefined\nawait cms.findOne(\"posts\", { where: { slug: \"hello-world\" } });\n\n\u002F\u002F One document by id, or undefined\nawait cms.findById(\"posts\", id);\n\n\u002F\u002F A global\nawait cms.getGlobal(\"footer\");\n",[495,1526,1527,1532,1555,1559,1564,1611,1615,1620,1645,1649,1654],{"__ignoreMap":493},[498,1528,1529],{"class":500,"line":501},[498,1530,1531],{"class":630},"\u002F\u002F Every post, newest first\n",[498,1533,1534,1537,1539,1541,1543,1545,1547,1549,1551,1553],{"class":500,"line":634},[498,1535,1536],{"class":516},"await",[498,1538,520],{"class":508},[498,1540,523],{"class":512},[498,1542,527],{"class":526},[498,1544,530],{"class":508},[498,1546,533],{"class":512},[498,1548,537],{"class":536},[498,1550,533],{"class":512},[498,1552,585],{"class":508},[498,1554,588],{"class":512},[498,1556,1557],{"class":500,"line":654},[498,1558,658],{"emptyLinePlaceholder":657},[498,1560,1561],{"class":500,"line":661},[498,1562,1563],{"class":630},"\u002F\u002F The first match, or undefined\n",[498,1565,1566,1568,1570,1572,1574,1576,1578,1580,1582,1584,1586,1588,1590,1592,1594,1596,1598,1601,1603,1605,1607,1609],{"class":500,"line":704},[498,1567,1536],{"class":516},[498,1569,520],{"class":508},[498,1571,523],{"class":512},[498,1573,688],{"class":526},[498,1575,530],{"class":508},[498,1577,533],{"class":512},[498,1579,537],{"class":536},[498,1581,533],{"class":512},[498,1583,542],{"class":512},[498,1585,545],{"class":512},[498,1587,549],{"class":548},[498,1589,552],{"class":512},[498,1591,545],{"class":512},[498,1593,714],{"class":548},[498,1595,552],{"class":512},[498,1597,562],{"class":512},[498,1599,1600],{"class":536},"hello-world",[498,1602,533],{"class":512},[498,1604,582],{"class":512},[498,1606,582],{"class":512},[498,1608,585],{"class":508},[498,1610,588],{"class":512},[498,1612,1613],{"class":500,"line":734},[498,1614,658],{"emptyLinePlaceholder":657},[498,1616,1617],{"class":500,"line":744},[498,1618,1619],{"class":630},"\u002F\u002F One document by id, or undefined\n",[498,1621,1622,1624,1626,1628,1630,1632,1634,1636,1638,1640,1643],{"class":500,"line":789},[498,1623,1536],{"class":516},[498,1625,520],{"class":508},[498,1627,523],{"class":512},[498,1629,1485],{"class":526},[498,1631,530],{"class":508},[498,1633,533],{"class":512},[498,1635,537],{"class":536},[498,1637,533],{"class":512},[498,1639,542],{"class":512},[498,1641,1642],{"class":508}," id)",[498,1644,588],{"class":512},[498,1646,1647],{"class":500,"line":794},[498,1648,658],{"emptyLinePlaceholder":657},[498,1650,1651],{"class":500,"line":799},[498,1652,1653],{"class":630},"\u002F\u002F A global\n",[498,1655,1656,1658,1660,1662,1664,1666,1668,1671,1673,1675],{"class":500,"line":1043},[498,1657,1536],{"class":516},[498,1659,520],{"class":508},[498,1661,523],{"class":512},[498,1663,1488],{"class":526},[498,1665,530],{"class":508},[498,1667,533],{"class":512},[498,1669,1670],{"class":536},"footer",[498,1672,533],{"class":512},[498,1674,585],{"class":508},[498,1676,588],{"class":512},[484,1678,1679,1682,1683,1686],{},[495,1680,1681],{},"where"," filters by field values. ",[495,1684,1685],{},"limit"," caps the number of documents:",[488,1688,1690],{"className":490,"code":1689,"language":492,"meta":493,"style":493},"await cms.find(\"posts\", { where: { category: \"news\", featured: true }, limit: 5 });\n",[495,1691,1692],{"__ignoreMap":493},[498,1693,1694,1696,1698,1700,1702,1704,1706,1708,1710,1712,1714,1716,1718,1720,1722,1724,1726,1728,1730,1732,1735,1737,1740,1742,1744,1746,1748,1750,1752],{"class":500,"line":501},[498,1695,1536],{"class":516},[498,1697,520],{"class":508},[498,1699,523],{"class":512},[498,1701,527],{"class":526},[498,1703,530],{"class":508},[498,1705,533],{"class":512},[498,1707,537],{"class":536},[498,1709,533],{"class":512},[498,1711,542],{"class":512},[498,1713,545],{"class":512},[498,1715,549],{"class":548},[498,1717,552],{"class":512},[498,1719,545],{"class":512},[498,1721,557],{"class":548},[498,1723,552],{"class":512},[498,1725,562],{"class":512},[498,1727,565],{"class":536},[498,1729,533],{"class":512},[498,1731,542],{"class":512},[498,1733,1734],{"class":548}," featured",[498,1736,552],{"class":512},[498,1738,1739],{"class":648}," true",[498,1741,570],{"class":512},[498,1743,573],{"class":548},[498,1745,552],{"class":512},[498,1747,579],{"class":578},[498,1749,582],{"class":512},[498,1751,585],{"class":508},[498,1753,588],{"class":512},[1494,1755,1756,1770,1780,1785,1788],{},[1497,1757,1758,1759,1761,1762,1765,1766,1769],{},"A document matches when every key in ",[495,1760,1681],{}," is equal. ",[495,1763,1764],{},"null"," matches an empty or missing field. A key set to ",[495,1767,1768],{},"undefined"," adds no filter.",[1497,1771,1772,1773,609,1776,1779],{},"You can filter on top-level fields that hold one value, like text, numbers, dates, a select or a single relation (by its id). ",[495,1774,1775],{},"createdBy",[495,1777,1778],{},"updatedBy"," hold user ids.",[1497,1781,1782,1784],{},[495,1783,1685],{}," MUST be a positive integer.",[1497,1786,1787],{},"A name that is not in the schema is a type error, for collections, globals and fields.",[1497,1789,1790],{},"A global that was never saved has no field values. Handle missing values in your templates.",[1792,1793,1794],"note",{},"Filters match equal values only, and reads always return the newest documents first. There is no sort or offset option.",[1796,1797,1799],"h3",{"id":1798},"add-the-public-url","Add the public URL",[484,1801,1802,1805,1806,552],{},[495,1803,1804],{},"permalink: true"," adds each document's public URL, from the collection's ",[495,1807,1808],{},"permalink",[488,1810,1812],{"className":490,"code":1811,"language":492,"meta":493,"style":493},"const posts = await cms.find(\"posts\", { permalink: true });\n\u002F\u002F posts[0].permalink is \"\u002Fposts\u002Fhello-world\"\n",[495,1813,1814,1855],{"__ignoreMap":493},[498,1815,1816,1818,1820,1822,1824,1826,1828,1830,1832,1834,1836,1838,1840,1842,1845,1847,1849,1851,1853],{"class":500,"line":501},[498,1817,505],{"class":504},[498,1819,509],{"class":508},[498,1821,513],{"class":512},[498,1823,517],{"class":516},[498,1825,520],{"class":508},[498,1827,523],{"class":512},[498,1829,527],{"class":526},[498,1831,530],{"class":508},[498,1833,533],{"class":512},[498,1835,537],{"class":536},[498,1837,533],{"class":512},[498,1839,542],{"class":512},[498,1841,545],{"class":512},[498,1843,1844],{"class":548}," permalink",[498,1846,552],{"class":512},[498,1848,1739],{"class":648},[498,1850,582],{"class":512},[498,1852,585],{"class":508},[498,1854,588],{"class":512},[498,1856,1857],{"class":500,"line":634},[498,1858,1859],{"class":630},"\u002F\u002F posts[0].permalink is \"\u002Fposts\u002Fhello-world\"\n",[484,1861,1862,1863,1865,1866,1868,1869,523],{},"The value is ",[495,1864,1764],{}," when the collection has no ",[495,1867,1808],{},", or when a placeholder in it has no value. In a localized collection, the URL has the locale prefix of the read's locale. See ",[1870,1871,167],"a",{"href":168},[590,1873,1875],{"id":1874},"pick-fields-and-relations","Pick fields and relations",[484,1877,1878],{},"By default, a read returns every field and loads related documents two levels deep. Two options change that:",[1494,1880,1881,1887],{},[1497,1882,1883,1886],{},[495,1884,1885],{},"select"," lists the fields to return.",[1497,1888,1889,1892,1893,523],{},[495,1890,1891],{},"populate"," picks which relations to load. See ",[1870,1894,112],{"href":1895},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations#populate",[488,1897,1899],{"className":490,"code":1898,"language":492,"meta":493,"style":493},"const posts = await cms.find(\"posts\", {\n  populate: { author: true },\n  select: { title: true, slug: true, author: { name: true } },\n});\n",[495,1900,1901,1929,1948,1991],{"__ignoreMap":493},[498,1902,1903,1905,1907,1909,1911,1913,1915,1917,1919,1921,1923,1925,1927],{"class":500,"line":501},[498,1904,505],{"class":504},[498,1906,509],{"class":508},[498,1908,513],{"class":512},[498,1910,517],{"class":516},[498,1912,520],{"class":508},[498,1914,523],{"class":512},[498,1916,527],{"class":526},[498,1918,530],{"class":508},[498,1920,533],{"class":512},[498,1922,537],{"class":536},[498,1924,533],{"class":512},[498,1926,542],{"class":512},[498,1928,701],{"class":512},[498,1930,1931,1934,1936,1938,1941,1943,1945],{"class":500,"line":634},[498,1932,1933],{"class":548},"  populate",[498,1935,552],{"class":512},[498,1937,545],{"class":512},[498,1939,1940],{"class":548}," author",[498,1942,552],{"class":512},[498,1944,1739],{"class":648},[498,1946,1947],{"class":512}," },\n",[498,1949,1950,1953,1955,1957,1960,1962,1964,1966,1968,1970,1972,1974,1976,1978,1980,1983,1985,1987,1989],{"class":500,"line":654},[498,1951,1952],{"class":548},"  select",[498,1954,552],{"class":512},[498,1956,545],{"class":512},[498,1958,1959],{"class":548}," title",[498,1961,552],{"class":512},[498,1963,1739],{"class":648},[498,1965,542],{"class":512},[498,1967,714],{"class":548},[498,1969,552],{"class":512},[498,1971,1739],{"class":648},[498,1973,542],{"class":512},[498,1975,1940],{"class":548},[498,1977,552],{"class":512},[498,1979,545],{"class":512},[498,1981,1982],{"class":548}," name",[498,1984,552],{"class":512},[498,1986,1739],{"class":648},[498,1988,582],{"class":512},[498,1990,1947],{"class":512},[498,1992,1993,1995,1997],{"class":500,"line":661},[498,1994,737],{"class":512},[498,1996,585],{"class":508},[498,1998,588],{"class":512},[484,2000,2001,2002,2005,2006,2009],{},"Each post is now ",[495,2003,2004],{},"{ id, title, slug, author: { id, name } }",". The result type follows the options, so ",[495,2007,2008],{},"posts[0].body"," is a type error.",[484,2011,2012,2013,2015],{},"The value of each key in ",[495,2014,1885],{}," decides what comes back:",[2017,2018,2019,2034],"table",{},[2020,2021,2022],"thead",{},[2023,2024,2025,2031],"tr",{},[2026,2027,2028,2029],"th",{},"In ",[495,2030,1885],{},[2026,2032,2033],{},"Result",[2035,2036,2037,2049,2059,2069,2082,2091],"tbody",{},[2023,2038,2039,2046],{},[2040,2041,2042,2043],"td",{},"a field: ",[495,2044,2045],{},"true",[2040,2047,2048],{},"The value of the field",[2023,2050,2051,2056],{},[2040,2052,2053,2054],{},"a group: ",[495,2055,2045],{},[2040,2057,2058],{},"The whole group",[2023,2060,2061,2066],{},[2040,2062,2053,2063],{},[495,2064,2065],{},"{ … }",[2040,2067,2068],{},"Only the listed fields of the group",[2023,2070,2071,2076],{},[2040,2072,2073,2074],{},"a relation or join: ",[495,2075,2045],{},[2040,2077,2078,2079,2081],{},"The value as ",[495,2080,1891],{}," leaves it: ids or documents",[2023,2083,2084,2088],{},[2040,2085,2073,2086],{},[495,2087,2065],{},[2040,2089,2090],{},"The loaded documents, with only the listed fields",[2023,2092,2093,2096],{},[2040,2094,2095],{},"a field that is not listed",[2040,2097,2098],{},"Left out",[1494,2100,2101,2129,2137],{},[1497,2102,2103,2106,2107,1480,2110,1480,2113,1480,2115,1480,2117,1480,2120,1480,2123,609,2125,2128],{},[495,2104,2105],{},"id"," always comes back. ",[495,2108,2109],{},"createdAt",[495,2111,2112],{},"updatedAt",[495,2114,1775],{},[495,2116,1778],{},[495,2118,2119],{},"publishedAt",[495,2121,2122],{},"hasDraft",[495,2124,1808],{},[495,2126,2127],{},"alternates"," come back only when you list them.",[1497,2130,2131,2134,2135,523],{},[495,2132,2133],{},"select: {}"," returns only ",[495,2136,2105],{},[1497,2138,2139,2142,2143,2145],{},[495,2140,2141],{},"afterRead"," hooks still see whole documents. ",[495,2144,1885],{}," trims the result after them.",[590,2147,2149],{"id":2148},"drafts","Drafts",[484,2151,2152],{},"Reads return published content. A document that was never published is missing, and a pending draft does not show.",[484,2154,2155,2156,2159,2160,2163],{},"The admin's ",[1870,2157,2158],{"href":193},"live preview"," needs to show drafts on your real pages. For that, read through ",[495,2161,2162],{},"cms.withSession(request)",". It returns an instance for the user of the request:",[1494,2165,2166,2169,2172],{},[1497,2167,2168],{},"With a session and the preview cookie that the admin sets, its reads return drafts.",[1497,2170,2171],{},"For everyone else, its reads return published content.",[1497,2173,2174,2175,2178],{},"It applies the ",[1870,2176,2177],{"href":206},"access rules"," for that user. The instance you import skips them.",[1457,2180,2181,2191,2196],{"sync":617},[1460,2182,2183,2184,2187,2188,2190],{"label":364},"The integration calls ",[495,2185,2186],{},"withSession()"," for you. ",[495,2189,1464],{}," is already bound to the request.",[1460,2192,2193,2195],{"label":368},[495,2194,1476],{}," reads with the cookies of the request, so it shows drafts in the preview without extra code.",[1460,2197,2198,2204],{"label":372},[484,2199,2200,2201,2203],{},"Call ",[495,2202,2186],{}," with the request in the server function:",[488,2205,2207],{"className":1052,"code":2206,"filename":1054,"language":1055,"meta":493,"style":493},"import { getRequest } from \"@tanstack\u002Freact-start\u002Fserver\";\n\nconst getPost = createServerFn()\n  .validator((slug: string) => slug)\n  .handler(async ({ data: slug }) => {\n    const tenon = await cms.withSession(getRequest());\n    const post = await tenon.findOne(\"posts\", { where: { slug } });\n    if (!post) throw notFound();\n    return post;\n  });\n",[495,2208,2209,2231,2235,2247,2269,2293,2321,2365,2385,2393],{"__ignoreMap":493},[498,2210,2211,2213,2215,2218,2220,2222,2224,2227,2229],{"class":500,"line":501},[498,2212,1062],{"class":516},[498,2214,545],{"class":512},[498,2216,2217],{"class":508}," getRequest",[498,2219,582],{"class":512},[498,2221,1077],{"class":516},[498,2223,562],{"class":512},[498,2225,2226],{"class":536},"@tanstack\u002Freact-start\u002Fserver",[498,2228,533],{"class":512},[498,2230,588],{"class":512},[498,2232,2233],{"class":500,"line":634},[498,2234,658],{"emptyLinePlaceholder":657},[498,2236,2237,2239,2241,2243,2245],{"class":500,"line":654},[498,2238,505],{"class":504},[498,2240,1138],{"class":508},[498,2242,513],{"class":512},[498,2244,1095],{"class":526},[498,2246,1145],{"class":508},[498,2248,2249,2251,2253,2255,2257,2259,2261,2263,2265,2267],{"class":500,"line":661},[498,2250,1150],{"class":512},[498,2252,1153],{"class":526},[498,2254,530],{"class":508},[498,2256,530],{"class":512},[498,2258,1161],{"class":1160},[498,2260,552],{"class":512},[498,2262,1167],{"class":1166},[498,2264,585],{"class":512},[498,2266,917],{"class":504},[498,2268,1174],{"class":508},[498,2270,2271,2273,2275,2277,2279,2281,2283,2285,2287,2289,2291],{"class":500,"line":704},[498,2272,1150],{"class":512},[498,2274,1181],{"class":526},[498,2276,530],{"class":508},[498,2278,1186],{"class":504},[498,2280,1189],{"class":512},[498,2282,881],{"class":548},[498,2284,552],{"class":512},[498,2286,714],{"class":1160},[498,2288,1198],{"class":512},[498,2290,917],{"class":504},[498,2292,701],{"class":512},[498,2294,2295,2297,2300,2302,2304,2306,2308,2311,2313,2316,2319],{"class":500,"line":734},[498,2296,1207],{"class":504},[498,2298,2299],{"class":508}," tenon",[498,2301,890],{"class":512},[498,2303,517],{"class":516},[498,2305,520],{"class":508},[498,2307,523],{"class":512},[498,2309,2310],{"class":526},"withSession",[498,2312,530],{"class":548},[498,2314,2315],{"class":526},"getRequest",[498,2317,2318],{"class":548},"())",[498,2320,588],{"class":512},[498,2322,2323,2325,2327,2329,2331,2333,2335,2337,2339,2341,2343,2345,2347,2349,2351,2353,2355,2357,2359,2361,2363],{"class":500,"line":744},[498,2324,1207],{"class":504},[498,2326,1210],{"class":508},[498,2328,890],{"class":512},[498,2330,517],{"class":516},[498,2332,2299],{"class":508},[498,2334,523],{"class":512},[498,2336,688],{"class":526},[498,2338,530],{"class":548},[498,2340,533],{"class":512},[498,2342,537],{"class":536},[498,2344,533],{"class":512},[498,2346,542],{"class":512},[498,2348,545],{"class":512},[498,2350,549],{"class":548},[498,2352,552],{"class":512},[498,2354,545],{"class":512},[498,2356,714],{"class":508},[498,2358,582],{"class":512},[498,2360,582],{"class":512},[498,2362,585],{"class":548},[498,2364,588],{"class":512},[498,2366,2367,2369,2371,2373,2375,2377,2379,2381,2383],{"class":500,"line":789},[498,2368,1253],{"class":516},[498,2370,750],{"class":548},[498,2372,753],{"class":512},[498,2374,811],{"class":508},[498,2376,1262],{"class":548},[498,2378,978],{"class":516},[498,2380,1072],{"class":526},[498,2382,870],{"class":548},[498,2384,588],{"class":512},[498,2386,2387,2389,2391],{"class":500,"line":794},[498,2388,1275],{"class":516},[498,2390,1210],{"class":508},[498,2392,588],{"class":512},[498,2394,2395,2397,2399],{"class":500,"line":799},[498,2396,1284],{"class":512},[498,2398,585],{"class":508},[498,2400,588],{"class":512},[484,2402,2403,2404,750,2406,2408,2409,523],{},"Every document also has ",[495,2405,2119],{},[495,2407,1764],{}," when it was never published) and ",[495,2410,2122],{},[484,2412,2413,2416],{},[495,2414,2415],{},"cms.withDrafts()"," returns an instance whose reads always see drafts. Use it in scripts and server code that is never public.",[2418,2419,2420,2421,2424],"warning",{},"Do not use ",[495,2422,2423],{},"withDrafts()"," to render public pages. Every visitor would see unpublished content.",[590,2426,2428],{"id":2427},"result-types","Result types",[484,2430,2431,2432,2435,2436,2439],{},"Components that receive content need a type for their props. ",[495,2433,2434],{},"DocumentOf"," from ",[495,2437,2438],{},"tenoncms\u002Fclient"," types a document as a read returns it, with the same options. Keep the options in one place and use them for the read and the type:",[488,2441,2444],{"className":490,"code":2442,"filename":2443,"language":492,"meta":493,"style":493},"import type { DocumentOf } from \"tenoncms\u002Fclient\";\n\nexport const cardOptions = {\n  select: { title: true, slug: true, cover: true },\n} as const;\n\nexport type PostCard = DocumentOf\u003C\"posts\", typeof cardOptions>;\n","src\u002Fcontent\u002Fposts.ts",[495,2445,2446,2470,2474,2487,2520,2531,2535],{"__ignoreMap":493},[498,2447,2448,2450,2453,2455,2458,2460,2462,2464,2466,2468],{"class":500,"line":501},[498,2449,1062],{"class":516},[498,2451,2452],{"class":516}," type",[498,2454,545],{"class":512},[498,2456,2457],{"class":508}," DocumentOf",[498,2459,582],{"class":512},[498,2461,1077],{"class":516},[498,2463,562],{"class":512},[498,2465,2438],{"class":536},[498,2467,533],{"class":512},[498,2469,588],{"class":512},[498,2471,2472],{"class":500,"line":634},[498,2473,658],{"emptyLinePlaceholder":657},[498,2475,2476,2478,2480,2483,2485],{"class":500,"line":654},[498,2477,637],{"class":516},[498,2479,640],{"class":504},[498,2481,2482],{"class":508}," cardOptions ",[498,2484,513],{"class":512},[498,2486,701],{"class":512},[498,2488,2489,2491,2493,2495,2497,2499,2501,2503,2505,2507,2509,2511,2514,2516,2518],{"class":500,"line":661},[498,2490,1952],{"class":548},[498,2492,552],{"class":512},[498,2494,545],{"class":512},[498,2496,1959],{"class":548},[498,2498,552],{"class":512},[498,2500,1739],{"class":648},[498,2502,542],{"class":512},[498,2504,714],{"class":548},[498,2506,552],{"class":512},[498,2508,1739],{"class":648},[498,2510,542],{"class":512},[498,2512,2513],{"class":548}," cover",[498,2515,552],{"class":512},[498,2517,1739],{"class":648},[498,2519,1947],{"class":512},[498,2521,2522,2524,2527,2529],{"class":500,"line":704},[498,2523,737],{"class":512},[498,2525,2526],{"class":516}," as",[498,2528,640],{"class":504},[498,2530,588],{"class":512},[498,2532,2533],{"class":500,"line":734},[498,2534,658],{"emptyLinePlaceholder":657},[498,2536,2537,2539,2541,2544,2546,2548,2550,2552,2554,2556,2558,2561,2564],{"class":500,"line":744},[498,2538,637],{"class":516},[498,2540,2452],{"class":504},[498,2542,2543],{"class":1166}," PostCard",[498,2545,890],{"class":512},[498,2547,2457],{"class":1166},[498,2549,802],{"class":512},[498,2551,533],{"class":512},[498,2553,537],{"class":536},[498,2555,533],{"class":512},[498,2557,542],{"class":512},[498,2559,2560],{"class":512}," typeof",[498,2562,2563],{"class":508}," cardOptions",[498,2565,1449],{"class":512},[488,2567,2569],{"className":490,"code":2568,"language":492,"meta":493,"style":493},"const posts = await cms.find(\"posts\", cardOptions);\n",[495,2570,2571],{"__ignoreMap":493},[498,2572,2573,2575,2577,2579,2581,2583,2585,2587,2589,2591,2593,2595,2597,2600],{"class":500,"line":501},[498,2574,505],{"class":504},[498,2576,509],{"class":508},[498,2578,513],{"class":512},[498,2580,517],{"class":516},[498,2582,520],{"class":508},[498,2584,523],{"class":512},[498,2586,527],{"class":526},[498,2588,530],{"class":508},[498,2590,533],{"class":512},[498,2592,537],{"class":536},[498,2594,533],{"class":512},[498,2596,542],{"class":512},[498,2598,2599],{"class":508}," cardOptions)",[498,2601,588],{"class":512},[484,2603,2604],{},"Two more helpers work the same way:",[1494,2606,2607,2613],{},[1497,2608,2609,2612],{},[495,2610,2611],{},"GlobalOf\u003C\"footer\">"," types a global.",[1497,2614,2615,2618,2619,2622,2623,2626],{},[495,2616,2617],{},"BlockOf\u003CPage[\"content\"]>"," types the items of a ",[1870,2620,2621],{"href":57},"blocks field",". ",[495,2624,2625],{},"BlockOf\u003CPage[\"content\"], \"hero\">"," narrows it to one block type.",[484,2628,2629,1480,2631,609,2633,2435,2636,2639,2640,1480,2643,609,2646,2649],{},[495,2630,76],{},[495,2632,68],{},[495,2634,2635],{},"LinkRead",[495,2637,2638],{},"tenoncms"," type a loaded ",[495,2641,2642],{},"image",[495,2644,2645],{},"file",[495,2647,2648],{},"link"," field.",[484,2651,2652,2653,523],{},"The helpers use the type of your CMS instance. Astro and Nuxt register it for you. On other frameworks, see ",[1870,2654,2656],{"href":2655},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client#types-without-an-adapter","Types without an adapter",[590,2658,2660],{"id":2659},"related-resources","Related resources",[1494,2662,2663,2669,2676,2682],{},[1497,2664,2665,2668],{},[1870,2666,2667],{"href":152},"Writing and drafts",": create, update, publish and delete.",[1497,2670,2671,2673,2674,523],{},[1870,2672,112],{"href":113},": load related documents with ",[495,2675,1891],{},[1497,2677,2678,2681],{},[1870,2679,2680],{"href":160},"HTTP API and client",": the same reads from the browser or another service.",[1497,2683,2684,2686],{},[1870,2685,333],{"href":334},": every method and option.",[2688,2689,2690],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":493,"searchDepth":634,"depth":634,"links":2692},[2693,2694,2697,2698,2699,2700],{"id":592,"depth":634,"text":593},{"id":1517,"depth":634,"text":1518,"children":2695},[2696],{"id":1798,"depth":654,"text":1799},{"id":1874,"depth":634,"text":1875},{"id":2148,"depth":634,"text":2149},{"id":2427,"depth":634,"text":2428},{"id":2659,"depth":634,"text":2660},"Query content from server code, typed from the schema.","md",null,{},{"title":147,"description":2701},"fJU3Th1FNrlZHq-WO6OA2X1oX_439v-II09EvsUAKCQ",[2708,2710],{"title":138,"path":139,"stem":140,"description":2709,"children":-1},"Translated short texts like \"Read more\", with defaults in code.",{"title":151,"path":152,"stem":153,"description":2711,"children":-1},"Create, update and delete content from server code, with drafts, publishing and schedules.",1795884644453]