[{"data":1,"prerenderedAt":2348},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-content-modeling-fields-relation":478,"-docs-core-content-modeling-fields-relation-surround":2114,"mdc--x3lu8g-key":2119,"mdc--5ugjsa-key":2130,"mdc--evu2iu-key":2139,"mdc-rlfo-key":2148,"mdc--dmjfhf-key":2165,"mdc--sz1000-key":2181,"mdc--z504j2-key":2197,"mdc-of2q3a-key":2213,"mdc--vl48ac-key":2222,"mdc--j75b70-key":2237,"mdc--rb8zmg-key":2258,"mdc-od5rku-key":2272,"mdc--bg6odx-key":2281,"mdc-qrsd8t-key":2290,"mdc--z84m0w-key":2306,"mdc-7oq4f5-key":2315,"mdc--ptzd4t-key":2332},[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":480,"body":481,"description":2107,"extension":2108,"links":2109,"meta":2110,"navigation":2111,"path":89,"seo":2112,"stem":90,"__hash__":2113},"docs\u002Fdocs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation.md","Relation and join",{"type":482,"value":483,"toc":2100},"minimark",[484,497,500,505,698,701,893,898,1265,1272,1298,1308,1311,1323,1457,1459,1462,1554,1978,2010,2014,2069,2074,2093,2096],[485,486,487,488,492,493,496],"p",{},"A ",[489,490,491],"code",{},"relation"," stores the id of another document, like the author of a post. A ",[489,494,495],{},"join"," is the other side: it lists the documents whose relation points here, like the posts of an author.",[498,499],"field-preview",{"name":491},[501,502,504],"h2",{"id":503},"example","Example",[506,507,513],"pre",{"className":508,"code":509,"filename":510,"language":511,"meta":512,"style":512},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export const posts = defineCollection({\n  fields: {\n    title: { type: \"text\", required: true },\n    author: { type: \"relation\", collection: \"authors\" },\n    tags: { type: \"relation\", collection: \"tags\", many: true },\n  },\n});\n","cms\u002Fcollections\u002Fposts.ts","ts","",[489,514,515,546,559,600,636,680,686],{"__ignoreMap":512},[516,517,520,524,528,532,536,540,543],"span",{"class":518,"line":519},"line",1,[516,521,523],{"class":522},"s7zQu","export",[516,525,527],{"class":526},"spNyl"," const",[516,529,531],{"class":530},"sTEyZ"," posts ",[516,533,535],{"class":534},"sMK4o","=",[516,537,539],{"class":538},"s2Zo4"," defineCollection",[516,541,542],{"class":530},"(",[516,544,545],{"class":534},"{\n",[516,547,549,553,556],{"class":518,"line":548},2,[516,550,552],{"class":551},"swJcz","  fields",[516,554,555],{"class":534},":",[516,557,558],{"class":534}," {\n",[516,560,562,565,567,570,573,575,578,582,585,588,591,593,597],{"class":518,"line":561},3,[516,563,564],{"class":551},"    title",[516,566,555],{"class":534},[516,568,569],{"class":534}," {",[516,571,572],{"class":551}," type",[516,574,555],{"class":534},[516,576,577],{"class":534}," \"",[516,579,581],{"class":580},"sfazB","text",[516,583,584],{"class":534},"\"",[516,586,587],{"class":534},",",[516,589,590],{"class":551}," required",[516,592,555],{"class":534},[516,594,596],{"class":595},"sfNiH"," true",[516,598,599],{"class":534}," },\n",[516,601,603,606,608,610,612,614,616,618,620,622,625,627,629,632,634],{"class":518,"line":602},4,[516,604,605],{"class":551},"    author",[516,607,555],{"class":534},[516,609,569],{"class":534},[516,611,572],{"class":551},[516,613,555],{"class":534},[516,615,577],{"class":534},[516,617,491],{"class":580},[516,619,584],{"class":534},[516,621,587],{"class":534},[516,623,624],{"class":551}," collection",[516,626,555],{"class":534},[516,628,577],{"class":534},[516,630,631],{"class":580},"authors",[516,633,584],{"class":534},[516,635,599],{"class":534},[516,637,639,642,644,646,648,650,652,654,656,658,660,662,664,667,669,671,674,676,678],{"class":518,"line":638},5,[516,640,641],{"class":551},"    tags",[516,643,555],{"class":534},[516,645,569],{"class":534},[516,647,572],{"class":551},[516,649,555],{"class":534},[516,651,577],{"class":534},[516,653,491],{"class":580},[516,655,584],{"class":534},[516,657,587],{"class":534},[516,659,624],{"class":551},[516,661,555],{"class":534},[516,663,577],{"class":534},[516,665,666],{"class":580},"tags",[516,668,584],{"class":534},[516,670,587],{"class":534},[516,672,673],{"class":551}," many",[516,675,555],{"class":534},[516,677,596],{"class":595},[516,679,599],{"class":534},[516,681,683],{"class":518,"line":682},6,[516,684,685],{"class":534},"  },\n",[516,687,689,692,695],{"class":518,"line":688},7,[516,690,691],{"class":534},"}",[516,693,694],{"class":530},")",[516,696,697],{"class":534},";\n",[485,699,700],{},"A read loads the related documents in place of the ids:",[506,702,704],{"className":508,"code":703,"language":511,"meta":512,"style":512},"const post = await cms.findOne(\"posts\", { where: { slug } });\npost?.author?.name; \u002F\u002F string\npost?.tags?.map((tag) => tag.title);\n\nconst raw = await cms.findOne(\"posts\", { where: { slug }, populate: false });\nraw?.author; \u002F\u002F string, the id\n",[489,705,706,760,783,819,825,879],{"__ignoreMap":512},[516,707,708,711,714,716,719,722,725,728,730,732,735,737,739,741,744,746,748,751,753,756,758],{"class":518,"line":519},[516,709,710],{"class":526},"const",[516,712,713],{"class":530}," post ",[516,715,535],{"class":534},[516,717,718],{"class":522}," await",[516,720,721],{"class":530}," cms",[516,723,724],{"class":534},".",[516,726,727],{"class":538},"findOne",[516,729,542],{"class":530},[516,731,584],{"class":534},[516,733,734],{"class":580},"posts",[516,736,584],{"class":534},[516,738,587],{"class":534},[516,740,569],{"class":534},[516,742,743],{"class":551}," where",[516,745,555],{"class":534},[516,747,569],{"class":534},[516,749,750],{"class":530}," slug ",[516,752,691],{"class":534},[516,754,755],{"class":534}," }",[516,757,694],{"class":530},[516,759,697],{"class":534},[516,761,762,765,768,771,773,776,779],{"class":518,"line":548},[516,763,764],{"class":530},"post",[516,766,767],{"class":534},"?.",[516,769,770],{"class":530},"author",[516,772,767],{"class":534},[516,774,775],{"class":530},"name",[516,777,778],{"class":534},";",[516,780,782],{"class":781},"sHwdD"," \u002F\u002F string\n",[516,784,785,787,789,791,793,796,798,800,804,806,809,812,814,817],{"class":518,"line":561},[516,786,764],{"class":530},[516,788,767],{"class":534},[516,790,666],{"class":530},[516,792,767],{"class":534},[516,794,795],{"class":538},"map",[516,797,542],{"class":530},[516,799,542],{"class":534},[516,801,803],{"class":802},"sHdIc","tag",[516,805,694],{"class":534},[516,807,808],{"class":526}," =>",[516,810,811],{"class":530}," tag",[516,813,724],{"class":534},[516,815,816],{"class":530},"title)",[516,818,697],{"class":534},[516,820,821],{"class":518,"line":602},[516,822,824],{"emptyLinePlaceholder":823},true,"\n",[516,826,827,829,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,865,868,870,873,875,877],{"class":518,"line":638},[516,828,710],{"class":526},[516,830,831],{"class":530}," raw ",[516,833,535],{"class":534},[516,835,718],{"class":522},[516,837,721],{"class":530},[516,839,724],{"class":534},[516,841,727],{"class":538},[516,843,542],{"class":530},[516,845,584],{"class":534},[516,847,734],{"class":580},[516,849,584],{"class":534},[516,851,587],{"class":534},[516,853,569],{"class":534},[516,855,743],{"class":551},[516,857,555],{"class":534},[516,859,569],{"class":534},[516,861,750],{"class":530},[516,863,864],{"class":534},"},",[516,866,867],{"class":551}," populate",[516,869,555],{"class":534},[516,871,872],{"class":595}," false",[516,874,755],{"class":534},[516,876,694],{"class":530},[516,878,697],{"class":534},[516,880,881,884,886,888,890],{"class":518,"line":682},[516,882,883],{"class":530},"raw",[516,885,767],{"class":534},[516,887,770],{"class":530},[516,889,778],{"class":534},[516,891,892],{"class":781}," \u002F\u002F string, the id\n",[894,895,897],"h3",{"id":896},"render-it","Render it",[899,900,902,1024,1125],"code-group",{"sync":901},"framework",[506,903,907],{"className":904,"code":905,"filename":364,"language":906,"meta":512,"style":512},"language-astro shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cp>By {post.author?.name ?? \"Unknown\"}\u003C\u002Fp>\n\u003Cul>\n  {post.tags?.map((tag) => \u003Cli>{tag.title}\u003C\u002Fli>)}\n\u003C\u002Ful>\n","astro",[489,908,909,954,963,1015],{"__ignoreMap":512},[516,910,911,914,916,919,922,925,927,929,931,933,936,939,941,944,946,949,951],{"class":518,"line":519},[516,912,913],{"class":534},"\u003C",[516,915,485],{"class":551},[516,917,918],{"class":534},">",[516,920,921],{"class":530},"By ",[516,923,924],{"class":534},"{",[516,926,764],{"class":530},[516,928,724],{"class":534},[516,930,770],{"class":530},[516,932,767],{"class":534},[516,934,935],{"class":530},"name ",[516,937,938],{"class":534},"??",[516,940,577],{"class":534},[516,942,943],{"class":580},"Unknown",[516,945,584],{"class":534},[516,947,948],{"class":534},"}\u003C\u002F",[516,950,485],{"class":551},[516,952,953],{"class":534},">\n",[516,955,956,958,961],{"class":518,"line":548},[516,957,913],{"class":534},[516,959,960],{"class":551},"ul",[516,962,953],{"class":534},[516,964,965,968,970,972,974,976,978,980,982,984,986,988,991,994,997,999,1001,1004,1006,1008,1010,1012],{"class":518,"line":561},[516,966,967],{"class":534},"  {",[516,969,764],{"class":530},[516,971,724],{"class":534},[516,973,666],{"class":530},[516,975,767],{"class":534},[516,977,795],{"class":538},[516,979,542],{"class":530},[516,981,542],{"class":534},[516,983,803],{"class":802},[516,985,694],{"class":534},[516,987,808],{"class":526},[516,989,990],{"class":534}," \u003C",[516,992,993],{"class":551},"li",[516,995,996],{"class":534},">{",[516,998,803],{"class":530},[516,1000,724],{"class":534},[516,1002,1003],{"class":530},"title",[516,1005,948],{"class":534},[516,1007,993],{"class":551},[516,1009,918],{"class":534},[516,1011,694],{"class":530},[516,1013,1014],{"class":534},"}\n",[516,1016,1017,1020,1022],{"class":518,"line":602},[516,1018,1019],{"class":534},"\u003C\u002F",[516,1021,960],{"class":551},[516,1023,953],{"class":534},[506,1025,1029],{"className":1026,"code":1027,"filename":368,"language":1028,"meta":512,"style":512},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003Cp>By {{ post.author?.name ?? \"Unknown\" }}\u003C\u002Fp>\n  \u003Cul>\n    \u003Cli v-for=\"tag in post.tags\" :key=\"tag.id\">{{ tag.title }}\u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Ftemplate>\n","vue",[489,1030,1031,1040,1058,1066,1108,1117],{"__ignoreMap":512},[516,1032,1033,1035,1038],{"class":518,"line":519},[516,1034,913],{"class":534},[516,1036,1037],{"class":551},"template",[516,1039,953],{"class":534},[516,1041,1042,1045,1047,1049,1052,1054,1056],{"class":518,"line":548},[516,1043,1044],{"class":534},"  \u003C",[516,1046,485],{"class":551},[516,1048,918],{"class":534},[516,1050,1051],{"class":530},"By {{ post.author?.name ?? \"Unknown\" }}",[516,1053,1019],{"class":534},[516,1055,485],{"class":551},[516,1057,953],{"class":534},[516,1059,1060,1062,1064],{"class":518,"line":561},[516,1061,1044],{"class":534},[516,1063,960],{"class":551},[516,1065,953],{"class":534},[516,1067,1068,1071,1073,1076,1078,1080,1083,1085,1088,1090,1092,1095,1097,1099,1102,1104,1106],{"class":518,"line":602},[516,1069,1070],{"class":534},"    \u003C",[516,1072,993],{"class":551},[516,1074,1075],{"class":526}," v-for",[516,1077,535],{"class":534},[516,1079,584],{"class":534},[516,1081,1082],{"class":580},"tag in post.tags",[516,1084,584],{"class":534},[516,1086,1087],{"class":526}," :key",[516,1089,535],{"class":534},[516,1091,584],{"class":534},[516,1093,1094],{"class":580},"tag.id",[516,1096,584],{"class":534},[516,1098,918],{"class":534},[516,1100,1101],{"class":530},"{{ tag.title }}",[516,1103,1019],{"class":534},[516,1105,993],{"class":551},[516,1107,953],{"class":534},[516,1109,1110,1113,1115],{"class":518,"line":638},[516,1111,1112],{"class":534},"  \u003C\u002F",[516,1114,960],{"class":551},[516,1116,953],{"class":534},[516,1118,1119,1121,1123],{"class":518,"line":682},[516,1120,1019],{"class":534},[516,1122,1037],{"class":551},[516,1124,953],{"class":534},[506,1126,1130],{"className":1127,"code":1128,"filename":372,"language":1129,"meta":512,"style":512},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C>\n  \u003Cp>By {post.author?.name ?? \"Unknown\"}\u003C\u002Fp>\n  \u003Cul>\n    {post.tags?.map((tag) => (\n      \u003Cli key={tag.id}>{tag.title}\u003C\u002Fli>\n    ))}\n  \u003C\u002Ful>\n\u003C\u002F>\n","tsx",[489,1131,1132,1137,1173,1181,1209,1244,1251,1259],{"__ignoreMap":512},[516,1133,1134],{"class":518,"line":519},[516,1135,1136],{"class":534},"\u003C>\n",[516,1138,1139,1141,1143,1145,1147,1149,1151,1153,1155,1157,1159,1161,1163,1165,1167,1169,1171],{"class":518,"line":548},[516,1140,1044],{"class":534},[516,1142,485],{"class":551},[516,1144,918],{"class":534},[516,1146,921],{"class":530},[516,1148,924],{"class":534},[516,1150,764],{"class":530},[516,1152,724],{"class":534},[516,1154,770],{"class":530},[516,1156,767],{"class":534},[516,1158,935],{"class":530},[516,1160,938],{"class":534},[516,1162,577],{"class":534},[516,1164,943],{"class":580},[516,1166,584],{"class":534},[516,1168,948],{"class":534},[516,1170,485],{"class":551},[516,1172,953],{"class":534},[516,1174,1175,1177,1179],{"class":518,"line":561},[516,1176,1044],{"class":534},[516,1178,960],{"class":551},[516,1180,953],{"class":534},[516,1182,1183,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206],{"class":518,"line":602},[516,1184,1185],{"class":534},"    {",[516,1187,764],{"class":530},[516,1189,724],{"class":534},[516,1191,666],{"class":530},[516,1193,767],{"class":534},[516,1195,795],{"class":538},[516,1197,542],{"class":530},[516,1199,542],{"class":534},[516,1201,803],{"class":802},[516,1203,694],{"class":534},[516,1205,808],{"class":526},[516,1207,1208],{"class":530}," (\n",[516,1210,1211,1214,1216,1219,1222,1224,1226,1229,1232,1234,1236,1238,1240,1242],{"class":518,"line":638},[516,1212,1213],{"class":534},"      \u003C",[516,1215,993],{"class":551},[516,1217,1218],{"class":526}," key",[516,1220,1221],{"class":534},"={",[516,1223,803],{"class":530},[516,1225,724],{"class":534},[516,1227,1228],{"class":530},"id",[516,1230,1231],{"class":534},"}>{",[516,1233,803],{"class":530},[516,1235,724],{"class":534},[516,1237,1003],{"class":530},[516,1239,948],{"class":534},[516,1241,993],{"class":551},[516,1243,953],{"class":534},[516,1245,1246,1249],{"class":518,"line":682},[516,1247,1248],{"class":530},"    ))",[516,1250,1014],{"class":534},[516,1252,1253,1255,1257],{"class":518,"line":688},[516,1254,1112],{"class":534},[516,1256,960],{"class":551},[516,1258,953],{"class":534},[516,1260,1262],{"class":518,"line":1261},8,[516,1263,1264],{"class":534},"\u003C\u002F>\n",[485,1266,1267,1268,724],{},"How deep a read loads, and how to keep the loaded documents small, is in ",[1269,1270,112],"a",{"href":1271},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations#populate",[960,1273,1274,1277,1283,1288],{},[993,1275,1276],{},"Each write checks that every id exists. A document cannot point to itself.",[993,1278,487,1279,1282],{},[489,1280,1281],{},"many"," relation keeps its order and rejects duplicates.",[993,1284,487,1285,1287],{},[489,1286,491],{}," works at the top level, in groups and in list items, in collections and globals. It can only point to collections.",[993,1289,1290,1291,1294,1295,724],{},"A typo in ",[489,1292,1293],{},"collection"," is a type error in ",[489,1296,1297],{},"tenon.config.ts",[485,1299,1300,1301,1304,1305,1307],{},"You can filter by a single top-level relation: ",[489,1302,1303],{},"cms.find(\"posts\", { where: { author: id } })",". Filters do not accept ",[489,1306,1281],{}," relations, relations in groups or joins.",[501,1309,1310],{"id":495},"Join",[485,1312,487,1313,1315,1316,1318,1319,1322],{},[489,1314,495],{}," stores nothing. It lists the documents of ",[489,1317,1293],{}," whose relation ",[489,1320,1321],{},"on"," points to this document:",[506,1324,1327],{"className":508,"code":1325,"filename":1326,"language":511,"meta":512,"style":512},"export const authors = defineCollection({\n  titleField: \"name\",\n  fields: {\n    name: { type: \"text\", required: true },\n    posts: { type: \"join\", collection: \"posts\", on: \"author\" },\n  },\n});\n","cms\u002Fcollections\u002Fauthors.ts",[489,1328,1329,1346,1362,1370,1399,1445,1449],{"__ignoreMap":512},[516,1330,1331,1333,1335,1338,1340,1342,1344],{"class":518,"line":519},[516,1332,523],{"class":522},[516,1334,527],{"class":526},[516,1336,1337],{"class":530}," authors ",[516,1339,535],{"class":534},[516,1341,539],{"class":538},[516,1343,542],{"class":530},[516,1345,545],{"class":534},[516,1347,1348,1351,1353,1355,1357,1359],{"class":518,"line":548},[516,1349,1350],{"class":551},"  titleField",[516,1352,555],{"class":534},[516,1354,577],{"class":534},[516,1356,775],{"class":580},[516,1358,584],{"class":534},[516,1360,1361],{"class":534},",\n",[516,1363,1364,1366,1368],{"class":518,"line":561},[516,1365,552],{"class":551},[516,1367,555],{"class":534},[516,1369,558],{"class":534},[516,1371,1372,1375,1377,1379,1381,1383,1385,1387,1389,1391,1393,1395,1397],{"class":518,"line":602},[516,1373,1374],{"class":551},"    name",[516,1376,555],{"class":534},[516,1378,569],{"class":534},[516,1380,572],{"class":551},[516,1382,555],{"class":534},[516,1384,577],{"class":534},[516,1386,581],{"class":580},[516,1388,584],{"class":534},[516,1390,587],{"class":534},[516,1392,590],{"class":551},[516,1394,555],{"class":534},[516,1396,596],{"class":595},[516,1398,599],{"class":534},[516,1400,1401,1404,1406,1408,1410,1412,1414,1416,1418,1420,1422,1424,1426,1428,1430,1432,1435,1437,1439,1441,1443],{"class":518,"line":638},[516,1402,1403],{"class":551},"    posts",[516,1405,555],{"class":534},[516,1407,569],{"class":534},[516,1409,572],{"class":551},[516,1411,555],{"class":534},[516,1413,577],{"class":534},[516,1415,495],{"class":580},[516,1417,584],{"class":534},[516,1419,587],{"class":534},[516,1421,624],{"class":551},[516,1423,555],{"class":534},[516,1425,577],{"class":534},[516,1427,734],{"class":580},[516,1429,584],{"class":534},[516,1431,587],{"class":534},[516,1433,1434],{"class":551}," on",[516,1436,555],{"class":534},[516,1438,577],{"class":534},[516,1440,770],{"class":580},[516,1442,584],{"class":534},[516,1444,599],{"class":534},[516,1446,1447],{"class":518,"line":682},[516,1448,685],{"class":534},[516,1450,1451,1453,1455],{"class":518,"line":688},[516,1452,691],{"class":534},[516,1454,694],{"class":530},[516,1456,697],{"class":534},[498,1458],{"name":495},[485,1460,1461],{},"A read loads a join only when you name it:",[506,1463,1465],{"className":508,"code":1464,"language":511,"meta":512,"style":512},"const author = await cms.findById(\"authors\", id, { populate: { posts: true } });\nauthor?.posts?.map((post) => post.title);\n",[489,1466,1467,1523],{"__ignoreMap":512},[516,1468,1469,1471,1474,1476,1478,1480,1482,1485,1487,1489,1491,1493,1495,1498,1500,1502,1504,1506,1508,1511,1513,1515,1517,1519,1521],{"class":518,"line":519},[516,1470,710],{"class":526},[516,1472,1473],{"class":530}," author ",[516,1475,535],{"class":534},[516,1477,718],{"class":522},[516,1479,721],{"class":530},[516,1481,724],{"class":534},[516,1483,1484],{"class":538},"findById",[516,1486,542],{"class":530},[516,1488,584],{"class":534},[516,1490,631],{"class":580},[516,1492,584],{"class":534},[516,1494,587],{"class":534},[516,1496,1497],{"class":530}," id",[516,1499,587],{"class":534},[516,1501,569],{"class":534},[516,1503,867],{"class":551},[516,1505,555],{"class":534},[516,1507,569],{"class":534},[516,1509,1510],{"class":551}," posts",[516,1512,555],{"class":534},[516,1514,596],{"class":595},[516,1516,755],{"class":534},[516,1518,755],{"class":534},[516,1520,694],{"class":530},[516,1522,697],{"class":534},[516,1524,1525,1527,1529,1531,1533,1535,1537,1539,1541,1543,1545,1548,1550,1552],{"class":518,"line":548},[516,1526,770],{"class":530},[516,1528,767],{"class":534},[516,1530,734],{"class":530},[516,1532,767],{"class":534},[516,1534,795],{"class":538},[516,1536,542],{"class":530},[516,1538,542],{"class":534},[516,1540,764],{"class":802},[516,1542,694],{"class":534},[516,1544,808],{"class":526},[516,1546,1547],{"class":530}," post",[516,1549,724],{"class":534},[516,1551,816],{"class":530},[516,1553,697],{"class":534},[899,1555,1556,1689,1824],{"sync":901},[506,1557,1559],{"className":904,"code":1558,"filename":364,"language":906,"meta":512,"style":512},"\u003Ch2>Posts by {author.name}\u003C\u002Fh2>\n\u003Cul>\n  {author.posts?.map((post) => (\n    \u003Cli>\u003Ca href={`\u002Fposts\u002F${post.slug}`}>{post.title}\u003C\u002Fa>\u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n",[489,1560,1561,1586,1594,1620,1674,1681],{"__ignoreMap":512},[516,1562,1563,1565,1567,1569,1572,1574,1576,1578,1580,1582,1584],{"class":518,"line":519},[516,1564,913],{"class":534},[516,1566,501],{"class":551},[516,1568,918],{"class":534},[516,1570,1571],{"class":530},"Posts by ",[516,1573,924],{"class":534},[516,1575,770],{"class":530},[516,1577,724],{"class":534},[516,1579,775],{"class":530},[516,1581,948],{"class":534},[516,1583,501],{"class":551},[516,1585,953],{"class":534},[516,1587,1588,1590,1592],{"class":518,"line":548},[516,1589,913],{"class":534},[516,1591,960],{"class":551},[516,1593,953],{"class":534},[516,1595,1596,1598,1600,1602,1604,1606,1608,1610,1612,1614,1616,1618],{"class":518,"line":561},[516,1597,967],{"class":534},[516,1599,770],{"class":530},[516,1601,724],{"class":534},[516,1603,734],{"class":530},[516,1605,767],{"class":534},[516,1607,795],{"class":538},[516,1609,542],{"class":530},[516,1611,542],{"class":534},[516,1613,764],{"class":802},[516,1615,694],{"class":534},[516,1617,808],{"class":526},[516,1619,1208],{"class":530},[516,1621,1622,1624,1626,1629,1631,1634,1636,1639,1642,1645,1647,1649,1652,1655,1657,1659,1661,1663,1665,1667,1670,1672],{"class":518,"line":602},[516,1623,1070],{"class":534},[516,1625,993],{"class":551},[516,1627,1628],{"class":534},">\u003C",[516,1630,1269],{"class":551},[516,1632,1633],{"class":526}," href",[516,1635,1221],{"class":534},[516,1637,1638],{"class":534},"`",[516,1640,1641],{"class":580},"\u002Fposts\u002F",[516,1643,1644],{"class":534},"${",[516,1646,764],{"class":530},[516,1648,724],{"class":534},[516,1650,1651],{"class":530},"slug",[516,1653,1654],{"class":534},"}`",[516,1656,1231],{"class":534},[516,1658,764],{"class":530},[516,1660,724],{"class":534},[516,1662,1003],{"class":530},[516,1664,948],{"class":534},[516,1666,1269],{"class":551},[516,1668,1669],{"class":534},">\u003C\u002F",[516,1671,993],{"class":551},[516,1673,953],{"class":534},[516,1675,1676,1679],{"class":518,"line":638},[516,1677,1678],{"class":530},"  ))",[516,1680,1014],{"class":534},[516,1682,1683,1685,1687],{"class":518,"line":682},[516,1684,1019],{"class":534},[516,1686,960],{"class":551},[516,1688,953],{"class":534},[506,1690,1692],{"className":1026,"code":1691,"filename":368,"language":1028,"meta":512,"style":512},"\u003Ctemplate>\n  \u003Ch2>Posts by {{ author.name }}\u003C\u002Fh2>\n  \u003Cul>\n    \u003Cli v-for=\"post in author.posts\" :key=\"post.id\">\n      \u003CNuxtLink :to=\"`\u002Fposts\u002F${post.slug}`\">{{ post.title }}\u003C\u002FNuxtLink>\n    \u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Ftemplate>\n",[489,1693,1694,1702,1719,1727,1757,1799,1808,1816],{"__ignoreMap":512},[516,1695,1696,1698,1700],{"class":518,"line":519},[516,1697,913],{"class":534},[516,1699,1037],{"class":551},[516,1701,953],{"class":534},[516,1703,1704,1706,1708,1710,1713,1715,1717],{"class":518,"line":548},[516,1705,1044],{"class":534},[516,1707,501],{"class":551},[516,1709,918],{"class":534},[516,1711,1712],{"class":530},"Posts by {{ author.name }}",[516,1714,1019],{"class":534},[516,1716,501],{"class":551},[516,1718,953],{"class":534},[516,1720,1721,1723,1725],{"class":518,"line":561},[516,1722,1044],{"class":534},[516,1724,960],{"class":551},[516,1726,953],{"class":534},[516,1728,1729,1731,1733,1735,1737,1739,1742,1744,1746,1748,1750,1753,1755],{"class":518,"line":602},[516,1730,1070],{"class":534},[516,1732,993],{"class":551},[516,1734,1075],{"class":526},[516,1736,535],{"class":534},[516,1738,584],{"class":534},[516,1740,1741],{"class":580},"post in author.posts",[516,1743,584],{"class":534},[516,1745,1087],{"class":526},[516,1747,535],{"class":534},[516,1749,584],{"class":534},[516,1751,1752],{"class":580},"post.id",[516,1754,584],{"class":534},[516,1756,953],{"class":534},[516,1758,1759,1761,1764,1767,1770,1772,1775,1777,1779,1781,1783,1785,1788,1790,1793,1795,1797],{"class":518,"line":638},[516,1760,1213],{"class":534},[516,1762,1763],{"class":551},"NuxtLink",[516,1765,1766],{"class":534}," :",[516,1768,1769],{"class":526},"to",[516,1771,535],{"class":534},[516,1773,1774],{"class":534},"\"`",[516,1776,1641],{"class":580},[516,1778,1644],{"class":534},[516,1780,764],{"class":530},[516,1782,724],{"class":534},[516,1784,1651],{"class":530},[516,1786,1787],{"class":534},"}`\"",[516,1789,918],{"class":534},[516,1791,1792],{"class":530},"{{ post.title }}",[516,1794,1019],{"class":534},[516,1796,1763],{"class":551},[516,1798,953],{"class":534},[516,1800,1801,1804,1806],{"class":518,"line":682},[516,1802,1803],{"class":534},"    \u003C\u002F",[516,1805,993],{"class":551},[516,1807,953],{"class":534},[516,1809,1810,1812,1814],{"class":518,"line":688},[516,1811,1112],{"class":534},[516,1813,960],{"class":551},[516,1815,953],{"class":534},[516,1817,1818,1820,1822],{"class":518,"line":1261},[516,1819,1019],{"class":534},[516,1821,1037],{"class":551},[516,1823,953],{"class":534},[506,1825,1827],{"className":1127,"code":1826,"filename":372,"language":1129,"meta":512,"style":512},"\u003C>\n  \u003Ch2>Posts by {author.name}\u003C\u002Fh2>\n  \u003Cul>\n    {author.posts?.map((post) => (\n      \u003Cli key={post.id}>\n        \u003Ca href={`\u002Fposts\u002F${post.slug}`}>{post.title}\u003C\u002Fa>\n      \u003C\u002Fli>\n    ))}\n  \u003C\u002Ful>\n\u003C\u002F>\n",[489,1828,1829,1833,1857,1865,1891,1910,1949,1958,1964,1973],{"__ignoreMap":512},[516,1830,1831],{"class":518,"line":519},[516,1832,1136],{"class":534},[516,1834,1835,1837,1839,1841,1843,1845,1847,1849,1851,1853,1855],{"class":518,"line":548},[516,1836,1044],{"class":534},[516,1838,501],{"class":551},[516,1840,918],{"class":534},[516,1842,1571],{"class":530},[516,1844,924],{"class":534},[516,1846,770],{"class":530},[516,1848,724],{"class":534},[516,1850,775],{"class":530},[516,1852,948],{"class":534},[516,1854,501],{"class":551},[516,1856,953],{"class":534},[516,1858,1859,1861,1863],{"class":518,"line":561},[516,1860,1044],{"class":534},[516,1862,960],{"class":551},[516,1864,953],{"class":534},[516,1866,1867,1869,1871,1873,1875,1877,1879,1881,1883,1885,1887,1889],{"class":518,"line":602},[516,1868,1185],{"class":534},[516,1870,770],{"class":530},[516,1872,724],{"class":534},[516,1874,734],{"class":530},[516,1876,767],{"class":534},[516,1878,795],{"class":538},[516,1880,542],{"class":530},[516,1882,542],{"class":534},[516,1884,764],{"class":802},[516,1886,694],{"class":534},[516,1888,808],{"class":526},[516,1890,1208],{"class":530},[516,1892,1893,1895,1897,1899,1901,1903,1905,1907],{"class":518,"line":638},[516,1894,1213],{"class":534},[516,1896,993],{"class":551},[516,1898,1218],{"class":526},[516,1900,1221],{"class":534},[516,1902,764],{"class":530},[516,1904,724],{"class":534},[516,1906,1228],{"class":530},[516,1908,1909],{"class":534},"}>\n",[516,1911,1912,1915,1917,1919,1921,1923,1925,1927,1929,1931,1933,1935,1937,1939,1941,1943,1945,1947],{"class":518,"line":682},[516,1913,1914],{"class":534},"        \u003C",[516,1916,1269],{"class":551},[516,1918,1633],{"class":526},[516,1920,1221],{"class":534},[516,1922,1638],{"class":534},[516,1924,1641],{"class":580},[516,1926,1644],{"class":534},[516,1928,764],{"class":530},[516,1930,724],{"class":534},[516,1932,1651],{"class":530},[516,1934,1654],{"class":534},[516,1936,1231],{"class":534},[516,1938,764],{"class":530},[516,1940,724],{"class":534},[516,1942,1003],{"class":530},[516,1944,948],{"class":534},[516,1946,1269],{"class":551},[516,1948,953],{"class":534},[516,1950,1951,1954,1956],{"class":518,"line":688},[516,1952,1953],{"class":534},"      \u003C\u002F",[516,1955,993],{"class":551},[516,1957,953],{"class":534},[516,1959,1960,1962],{"class":518,"line":1261},[516,1961,1248],{"class":530},[516,1963,1014],{"class":534},[516,1965,1967,1969,1971],{"class":518,"line":1966},9,[516,1968,1112],{"class":534},[516,1970,960],{"class":551},[516,1972,953],{"class":534},[516,1974,1976],{"class":518,"line":1975},10,[516,1977,1264],{"class":534},[960,1979,1980,1985,1993],{},[993,1981,487,1982,1984],{},[489,1983,495],{}," works only at the top level of a collection.",[993,1986,1987,1989,1990,724],{},[489,1988,1321],{}," can name a relation inside a group, like ",[489,1991,1992],{},"seo.image",[993,1994,1995,1998,1999,1998,2002,2005,2006,2009],{},[489,1996,1997],{},"required",", ",[489,2000,2001],{},"default",[489,2003,2004],{},"hidden"," and ",[489,2007,2008],{},"private"," do not apply, because a join stores nothing.",[501,2011,2013],{"id":2012},"options","Options",[2015,2016,2017,2023,2027,2037,2050],"field-group",{},[2018,2019],"field",{"name":2020,"type":2021,":required":2022},"type","\"relation\"","true",[2018,2024,2026],{"name":1293,"type":2025,":required":2022},"string","The collection the ids point to. It can be the collection that holds the field, like a parent page.",[2018,2028,2030,2031,2033,2034,724],{"name":1281,"type":2029},"boolean","Store a list of ids instead of one. With ",[489,2032,1997],{},", at least one. Default ",[489,2035,2036],{},"false",[2018,2038,2041,2042,2045,2046,724],{"name":2039,"type":2040},"select","Record\u003Cstring, true | object>","The fields a loaded document keeps, like ",[489,2043,2044],{},"{ name: true, avatar: true }",". See ",[1269,2047,2049],{"href":2048},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations#keep-related-documents-small","Keep related documents small",[2018,2051,2054,2055,2058,2059,2061,2062,2045,2065,724],{"name":2052,"type":2053},"onDelete","\"set-null\" | \"restrict\" | \"cascade\"","What happens when the related document is deleted. Default ",[489,2056,2057],{},"\"restrict\""," for a ",[489,2060,1997],{}," relation, otherwise ",[489,2063,2064],{},"\"set-null\"",[1269,2066,2068],{"href":2067},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations#when-a-document-is-deleted","When a document is deleted",[485,2070,2071,2072,555],{},"The options of a ",[489,2073,495],{},[2015,2075,2076,2079,2082],{},[2018,2077],{"name":2020,"type":2078,":required":2022},"\"join\"",[2018,2080,2081],{"name":1293,"type":2025,":required":2022},"The collection whose documents point here.",[2018,2083,2084,2085,2087,2088,2090,2091,724],{"name":1321,"type":2025,":required":2022},"The relation field in ",[489,2086,1293],{}," that points here, like ",[489,2089,770],{}," or ",[489,2092,1992],{},[2094,2095],"field-common-options",{},[2097,2098,2099],"style",{},"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 .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .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}",{"title":512,"searchDepth":548,"depth":548,"links":2101},[2102,2105,2106],{"id":503,"depth":548,"text":504,"children":2103},[2104],{"id":896,"depth":561,"text":897},{"id":495,"depth":548,"text":1310},{"id":2012,"depth":548,"text":2013},"Point to other documents, and list the documents that point back.","md",null,{},{"title":88},{"title":480,"description":2107},"01Yprdly4QbiDly2qUmnzTFNkdBNPwOKvEPfv1Vhq_E",[2115,2117],{"title":84,"path":85,"stem":86,"description":2116,"children":-1},"A number, with an optional range and step.",{"title":92,"path":93,"stem":94,"description":2118,"children":-1},"Formatted text with headings, lists, links and images.",{"data":2120,"body":2121},{},{"type":2122,"children":2123},"root",[2124],{"type":2125,"tag":485,"props":2126,"children":2127},"element",{},[2128],{"type":581,"value":2129},"The label in the admin. Defaults to the key. Pass an object to translate it.",{"data":2131,"body":2132},{},{"type":2122,"children":2133},[2134],{"type":2125,"tag":485,"props":2135,"children":2136},{},[2137],{"type":581,"value":2138},"Help text below the input.",{"data":2140,"body":2141},{},{"type":2122,"children":2142},[2143],{"type":2125,"tag":485,"props":2144,"children":2145},{},[2146],{"type":581,"value":2147},"The value MUST be present. A list needs at least one item.",{"data":2149,"body":2150},{},{"type":2122,"children":2151},[2152],{"type":2125,"tag":485,"props":2153,"children":2154},{},[2155,2157,2163],{"type":581,"value":2156},"The value of a new document, when the field is missing. A plain value also fills the new form in the admin. A function, like ",{"type":2125,"tag":489,"props":2158,"children":2160},{"className":2159},[],[2161],{"type":581,"value":2162},"({ user }) => user?.id",{"type":581,"value":2164},", runs on the server only.",{"data":2166,"body":2167},{},{"type":2122,"children":2168},[2169],{"type":2125,"tag":485,"props":2170,"children":2171},{},[2172,2174,2180],{"type":581,"value":2173},"No other document of the collection has the same value. See ",{"type":2125,"tag":1269,"props":2175,"children":2177},{"href":2176},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#validation",[2178],{"type":581,"value":2179},"Validation",{"type":581,"value":724},{"data":2182,"body":2183},{},{"type":2122,"children":2184},[2185],{"type":2125,"tag":485,"props":2186,"children":2187},{},[2188,2190,2196],{"type":581,"value":2189},"Your own check. See ",{"type":2125,"tag":1269,"props":2191,"children":2193},{"href":2192},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#your-own-checks",[2194],{"type":581,"value":2195},"Your own checks",{"type":581,"value":724},{"data":2198,"body":2199},{},{"type":2122,"children":2200},[2201],{"type":2125,"tag":485,"props":2202,"children":2203},{},[2204,2206,2212],{"type":581,"value":2205},"Show the field only when other values match. See ",{"type":2125,"tag":1269,"props":2207,"children":2209},{"href":2208},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#conditions",[2210],{"type":581,"value":2211},"Conditions",{"type":581,"value":724},{"data":2214,"body":2215},{},{"type":2122,"children":2216},[2217],{"type":2125,"tag":485,"props":2218,"children":2219},{},[2220],{"type":581,"value":2221},"Public reads leave the value out. Signed-in users and server code see it.",{"data":2223,"body":2224},{},{"type":2122,"children":2225},[2226],{"type":2125,"tag":485,"props":2227,"children":2228},{},[2229,2231,2236],{"type":581,"value":2230},"Who can read and write this field. See ",{"type":2125,"tag":1269,"props":2232,"children":2233},{"href":206},[2234],{"type":581,"value":2235},"Access control",{"type":581,"value":724},{"data":2238,"body":2239},{},{"type":2122,"children":2240},[2241],{"type":2125,"tag":485,"props":2242,"children":2243},{},[2244,2246,2251,2253,2257],{"type":581,"value":2245},"In a localized collection, every field is stored per language. ",{"type":2125,"tag":489,"props":2247,"children":2249},{"className":2248},[],[2250],{"type":581,"value":2036},{"type":581,"value":2252}," shares this field between languages. Only on top-level fields. See ",{"type":2125,"tag":1269,"props":2254,"children":2255},{"href":168},[2256],{"type":581,"value":167},{"type":581,"value":724},{"data":2259,"body":2260},{},{"type":2122,"children":2261},[2262],{"type":2125,"tag":485,"props":2263,"children":2264},{},[2265,2267,2271],{"type":581,"value":2266},"Functions that run for this field on every write and read, before the collection's hooks. See ",{"type":2125,"tag":1269,"props":2268,"children":2269},{"href":172},[2270],{"type":581,"value":171},{"type":581,"value":724},{"data":2273,"body":2274},{},{"type":2122,"children":2275},[2276],{"type":2125,"tag":485,"props":2277,"children":2278},{},[2279],{"type":581,"value":2280},"The admin does not show the input. The value still saves. Use it for values a hook sets.",{"data":2282,"body":2283},{},{"type":2122,"children":2284},[2285],{"type":2125,"tag":485,"props":2286,"children":2287},{},[2288],{"type":581,"value":2289},"The admin shows the input disabled. Code and hooks can still write it.",{"data":2291,"body":2292},{},{"type":2122,"children":2293},[2294],{"type":2125,"tag":485,"props":2295,"children":2296},{},[2297,2299,2305],{"type":581,"value":2298},"The share of the row the field takes. Fields next to each other fill a row. In a narrow form, every field takes the full width. Default ",{"type":2125,"tag":489,"props":2300,"children":2302},{"className":2301},[],[2303],{"type":581,"value":2304},"\"full\"",{"type":581,"value":724},{"data":2307,"body":2308},{},{"type":2122,"children":2309},[2310],{"type":2125,"tag":485,"props":2311,"children":2312},{},[2313],{"type":581,"value":2314},"A line above the field, to break up a long form. A string adds a heading above the line.",{"data":2316,"body":2317},{},{"type":2122,"children":2318},[2319],{"type":2125,"tag":485,"props":2320,"children":2321},{},[2322,2324,2330],{"type":581,"value":2323},"The tab that shows this field. Define the tabs with ",{"type":2125,"tag":489,"props":2325,"children":2327},{"className":2326},[],[2328],{"type":581,"value":2329},"tabs",{"type":581,"value":2331}," on the collection, global, group or list item.",{"data":2333,"body":2334},{},{"type":2122,"children":2335},[2336],{"type":2125,"tag":485,"props":2337,"children":2338},{},[2339,2341,2347],{"type":581,"value":2340},"The box that holds this field. Define the boxes with ",{"type":2125,"tag":489,"props":2342,"children":2344},{"className":2343},[],[2345],{"type":581,"value":2346},"fieldsets",{"type":581,"value":724},1795884712756]