[{"data":1,"prerenderedAt":3127},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-content-modeling-fields":478,"-docs-core-content-modeling-fields-surround":2899,"mdc--x3lu8g-key":2904,"mdc--5ugjsa-key":2915,"mdc--evu2iu-key":2924,"mdc-rlfo-key":2932,"mdc--dmjfhf-key":2949,"mdc--sz1000-key":2964,"mdc--z504j2-key":2979,"mdc-of2q3a-key":2994,"mdc--vl48ac-key":3003,"mdc--j75b70-key":3018,"mdc--rb8zmg-key":3039,"mdc-od5rku-key":3053,"mdc--bg6odx-key":3062,"mdc-qrsd8t-key":3071,"mdc--z84m0w-key":3087,"mdc-7oq4f5-key":3096,"mdc--ptzd4t-key":3112},[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":45,"body":480,"description":2892,"extension":2893,"links":2894,"meta":2895,"navigation":2896,"path":46,"seo":2897,"stem":47,"__hash__":2898},"docs\u002Fdocs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex.md",{"type":481,"value":482,"toc":2873},"minimark",[483,496,731,736,970,974,977,981,984,989,1017,1021,1034,1085,1088,1091,1094,1246,1260,1264,1274,1437,1526,1554,1558,1561,1565,1571,1635,1749,1772,1783,1787,1796,1891,1897,1980,1987,1991,2002,2118,2141,2145,2213,2220,2224,2229,2443,2464,2468,2526,2838,2842,2858,2869],[484,485,486,487,491,492,495],"p",{},"Each key in ",[488,489,490],"code",{},"fields"," is one field. Its ",[488,493,494],{},"type"," says what it stores and which input the admin shows:",[497,498,504],"pre",{"className":499,"code":500,"filename":501,"language":502,"meta":503,"style":503},"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    slug: { type: \"slug\", from: \"title\", unique: true },\n    category: { type: \"select\", options: [\"news\", \"guide\"] },\n    publishedAt: { type: \"date\" },\n  },\n});\n","cms\u002Fcollections\u002Fposts.ts","ts","",[488,505,506,537,550,591,637,690,713,719],{"__ignoreMap":503},[507,508,511,515,519,523,527,531,534],"span",{"class":509,"line":510},"line",1,[507,512,514],{"class":513},"s7zQu","export",[507,516,518],{"class":517},"spNyl"," const",[507,520,522],{"class":521},"sTEyZ"," posts ",[507,524,526],{"class":525},"sMK4o","=",[507,528,530],{"class":529},"s2Zo4"," defineCollection",[507,532,533],{"class":521},"(",[507,535,536],{"class":525},"{\n",[507,538,540,544,547],{"class":509,"line":539},2,[507,541,543],{"class":542},"swJcz","  fields",[507,545,546],{"class":525},":",[507,548,549],{"class":525}," {\n",[507,551,553,556,558,561,564,566,569,573,576,579,582,584,588],{"class":509,"line":552},3,[507,554,555],{"class":542},"    title",[507,557,546],{"class":525},[507,559,560],{"class":525}," {",[507,562,563],{"class":542}," type",[507,565,546],{"class":525},[507,567,568],{"class":525}," \"",[507,570,572],{"class":571},"sfazB","text",[507,574,575],{"class":525},"\"",[507,577,578],{"class":525},",",[507,580,581],{"class":542}," required",[507,583,546],{"class":525},[507,585,587],{"class":586},"sfNiH"," true",[507,589,590],{"class":525}," },\n",[507,592,594,597,599,601,603,605,607,610,612,614,617,619,621,624,626,628,631,633,635],{"class":509,"line":593},4,[507,595,596],{"class":542},"    slug",[507,598,546],{"class":525},[507,600,560],{"class":525},[507,602,563],{"class":542},[507,604,546],{"class":525},[507,606,568],{"class":525},[507,608,609],{"class":571},"slug",[507,611,575],{"class":525},[507,613,578],{"class":525},[507,615,616],{"class":542}," from",[507,618,546],{"class":525},[507,620,568],{"class":525},[507,622,623],{"class":571},"title",[507,625,575],{"class":525},[507,627,578],{"class":525},[507,629,630],{"class":542}," unique",[507,632,546],{"class":525},[507,634,587],{"class":586},[507,636,590],{"class":525},[507,638,640,643,645,647,649,651,653,656,658,660,663,665,668,670,673,675,677,679,682,684,687],{"class":509,"line":639},5,[507,641,642],{"class":542},"    category",[507,644,546],{"class":525},[507,646,560],{"class":525},[507,648,563],{"class":542},[507,650,546],{"class":525},[507,652,568],{"class":525},[507,654,655],{"class":571},"select",[507,657,575],{"class":525},[507,659,578],{"class":525},[507,661,662],{"class":542}," options",[507,664,546],{"class":525},[507,666,667],{"class":521}," [",[507,669,575],{"class":525},[507,671,672],{"class":571},"news",[507,674,575],{"class":525},[507,676,578],{"class":525},[507,678,568],{"class":525},[507,680,681],{"class":571},"guide",[507,683,575],{"class":525},[507,685,686],{"class":521},"] ",[507,688,689],{"class":525},"},\n",[507,691,693,696,698,700,702,704,706,709,711],{"class":509,"line":692},6,[507,694,695],{"class":542},"    publishedAt",[507,697,546],{"class":525},[507,699,560],{"class":525},[507,701,563],{"class":542},[507,703,546],{"class":525},[507,705,568],{"class":525},[507,707,708],{"class":571},"date",[507,710,575],{"class":525},[507,712,590],{"class":525},[507,714,716],{"class":509,"line":715},7,[507,717,718],{"class":525},"  },\n",[507,720,722,725,728],{"class":509,"line":721},8,[507,723,724],{"class":525},"}",[507,726,727],{"class":521},")",[507,729,730],{"class":525},";\n",[732,733,735],"h2",{"id":734},"field-types","Field types",[737,738,739,752],"table",{},[740,741,742],"thead",{},[743,744,745,749],"tr",{},[746,747,748],"th",{},"Type",[746,750,751],{},"Stores",[753,754,755,769,781,799,814,826,838,850,862,874,889,901,915,930,944,958],"tbody",{},[743,756,757,766],{},[758,759,760],"td",{},[761,762,763],"a",{"href":53},[488,764,765],{},"array",[758,767,768],{},"A list of items with the same fields",[743,770,771,778],{},[758,772,773],{},[761,774,775],{"href":57},[488,776,777],{},"blocks",[758,779,780],{},"A list of page sections of different types",[743,782,783,790],{},[758,784,785],{},[761,786,787],{"href":61},[488,788,789],{},"boolean",[758,791,792,795,796],{},[488,793,794],{},"true"," or ",[488,797,798],{},"false",[743,800,801,811],{},[758,802,803],{},[761,804,805,807,808],{"href":65},[488,806,708],{},", ",[488,809,810],{},"datetime",[758,812,813],{},"A calendar day, or a moment in UTC",[743,815,816,823],{},[758,817,818],{},[761,819,820],{"href":69},[488,821,822],{},"file",[758,824,825],{},"Any file from the media library",[743,827,828,835],{},[758,829,830],{},[761,831,832],{"href":73},[488,833,834],{},"group",[758,836,837],{},"Fields nested under one key",[743,839,840,847],{},[758,841,842],{},[761,843,844],{"href":77},[488,845,846],{},"image",[758,848,849],{},"An image from the media library",[743,851,852,859],{},[758,853,854],{},[761,855,856],{"href":81},[488,857,858],{},"link",[758,860,861],{},"A link to a document, a URL or a file",[743,863,864,871],{},[758,865,866],{},[761,867,868],{"href":85},[488,869,870],{},"number",[758,872,873],{},"A number",[743,875,876,886],{},[758,877,878],{},[761,879,880,807,883],{"href":89},[488,881,882],{},"relation",[488,884,885],{},"join",[758,887,888],{},"Ids of other documents, and the reverse side",[743,890,891,898],{},[758,892,893],{},[761,894,895],{"href":93},[488,896,897],{},"richtext",[758,899,900],{},"A structured document with formatting",[743,902,903,909],{},[758,904,905],{},[761,906,907],{"href":97},[488,908,655],{},[758,910,911,912],{},"One or more of the listed ",[488,913,914],{},"options",[743,916,917,924],{},[758,918,919],{},[761,920,921],{"href":101},[488,922,923],{},"size",[758,925,926,927],{},"A number with a CSS unit, ",[488,928,929],{},"{ value, unit }",[743,931,932,938],{},[758,933,934],{},[761,935,936],{"href":105},[488,937,609],{},[758,939,940,941],{},"A URL part, like ",[488,942,943],{},"about-us",[743,945,946,955],{},[758,947,948],{},[761,949,950,807,952],{"href":109},[488,951,572],{},[488,953,954],{},"textarea",[758,956,957],{},"A string",[743,959,960,967],{},[758,961,962],{},[761,963,964],{"href":224},[488,965,966],{},"custom:\u003Cname>",[758,968,969],{},"Any value, with your own input in the admin",[732,971,973],{"id":972},"common-options","Common options",[484,975,976],{},"Every field type takes these options. The page of each type lists its own options.",[978,979],"field-common-options",{":collapsible":798,"section":980},"common",[982,983],"hr",{},[985,986,988],"h3",{"id":987},"limits","Limits",[990,991,992,999],"ul",{},[993,994,995,998],"li",{},[488,996,997],{},"default"," applies only when a document is created, and only to fields that are missing.",[993,1000,1001,807,1004,807,1006,1009,1010,1013,1014,1016],{},[488,1002,1003],{},"required",[488,1005,997],{},[488,1007,1008],{},"hidden"," and ",[488,1011,1012],{},"private"," do not apply to ",[488,1015,885],{},", because a join stores nothing.",[985,1018,1020],{"id":1019},"hide-or-protect-a-field","Hide or protect a field",[484,1022,1023,1009,1025,1028,1029,1033],{},[488,1024,1008],{},[488,1026,1027],{},"readOnly"," change only the admin (see ",[761,1030,1032],{"href":1031},"#admin-options","Admin options","). They are not access rules.",[737,1035,1036,1046],{},[740,1037,1038],{},[743,1039,1040,1043],{},[746,1041,1042],{},"Goal",[746,1044,1045],{},"Use",[753,1047,1048,1057,1066,1075],{},[743,1049,1050,1053],{},[758,1051,1052],{},"Keep a value out of the admin form",[758,1054,1055],{},[488,1056,1008],{},[743,1058,1059,1062],{},[758,1060,1061],{},"Show a value, but block edits in admin",[758,1063,1064],{},[488,1065,1027],{},[743,1067,1068,1071],{},[758,1069,1070],{},"Keep a value out of public reads",[758,1072,1073],{},[488,1074,1012],{},[743,1076,1077,1080],{},[758,1078,1079],{},"Decide who can read or write a value",[758,1081,1082],{},[488,1083,1084],{},"access",[732,1086,1032],{"id":1087},"admin-options",[484,1089,1090],{},"These options change how the admin form shows a field. The stored document keeps its shape, and the API ignores them.",[978,1092],{":collapsible":798,"section":1093},"admin",[497,1095,1097],{"className":499,"code":1096,"language":502,"meta":503,"style":503},"fields: {\n  firstName: { type: \"text\", width: \"1\u002F2\" },\n  lastName: { type: \"text\", width: \"1\u002F2\" },\n  bio: { type: \"textarea\", separator: \"About\" },\n  syncedAt: { type: \"datetime\", readOnly: true },\n}\n",[488,1098,1099,1108,1143,1176,1211,1241],{"__ignoreMap":503},[507,1100,1101,1104,1106],{"class":509,"line":510},[507,1102,490],{"class":1103},"sBMFI",[507,1105,546],{"class":525},[507,1107,549],{"class":525},[507,1109,1110,1113,1115,1117,1119,1121,1123,1125,1127,1129,1132,1134,1136,1139,1141],{"class":509,"line":539},[507,1111,1112],{"class":1103},"  firstName",[507,1114,546],{"class":525},[507,1116,560],{"class":525},[507,1118,563],{"class":1103},[507,1120,546],{"class":525},[507,1122,568],{"class":525},[507,1124,572],{"class":571},[507,1126,575],{"class":525},[507,1128,578],{"class":525},[507,1130,1131],{"class":1103}," width",[507,1133,546],{"class":525},[507,1135,568],{"class":525},[507,1137,1138],{"class":571},"1\u002F2",[507,1140,575],{"class":525},[507,1142,590],{"class":525},[507,1144,1145,1148,1150,1152,1154,1156,1158,1160,1162,1164,1166,1168,1170,1172,1174],{"class":509,"line":552},[507,1146,1147],{"class":1103},"  lastName",[507,1149,546],{"class":525},[507,1151,560],{"class":525},[507,1153,563],{"class":1103},[507,1155,546],{"class":525},[507,1157,568],{"class":525},[507,1159,572],{"class":571},[507,1161,575],{"class":525},[507,1163,578],{"class":525},[507,1165,1131],{"class":1103},[507,1167,546],{"class":525},[507,1169,568],{"class":525},[507,1171,1138],{"class":571},[507,1173,575],{"class":525},[507,1175,590],{"class":525},[507,1177,1178,1181,1183,1185,1187,1189,1191,1193,1195,1197,1200,1202,1204,1207,1209],{"class":509,"line":593},[507,1179,1180],{"class":1103},"  bio",[507,1182,546],{"class":525},[507,1184,560],{"class":525},[507,1186,563],{"class":1103},[507,1188,546],{"class":525},[507,1190,568],{"class":525},[507,1192,954],{"class":571},[507,1194,575],{"class":525},[507,1196,578],{"class":525},[507,1198,1199],{"class":1103}," separator",[507,1201,546],{"class":525},[507,1203,568],{"class":525},[507,1205,1206],{"class":571},"About",[507,1208,575],{"class":525},[507,1210,590],{"class":525},[507,1212,1213,1216,1218,1220,1222,1224,1226,1228,1230,1232,1235,1237,1239],{"class":509,"line":639},[507,1214,1215],{"class":1103},"  syncedAt",[507,1217,546],{"class":525},[507,1219,560],{"class":525},[507,1221,563],{"class":1103},[507,1223,546],{"class":525},[507,1225,568],{"class":525},[507,1227,810],{"class":571},[507,1229,575],{"class":525},[507,1231,578],{"class":525},[507,1233,1234],{"class":1103}," readOnly",[507,1236,546],{"class":525},[507,1238,587],{"class":586},[507,1240,590],{"class":525},[507,1242,1243],{"class":509,"line":692},[507,1244,1245],{"class":525},"}\n",[484,1247,1248,1009,1251,1254,1255,1259],{},[488,1249,1250],{},"tabs",[488,1252,1253],{},"fieldsets"," are explained in ",[761,1256,1258],{"href":1257},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals#options","Collections and globals",".",[732,1261,1263],{"id":1262},"reading-values-in-typescript","Reading values in TypeScript",[484,1265,1266,1267,1269,1270,1273],{},"The field ",[488,1268,494],{}," sets the TypeScript type of a read. ",[761,1271,1258],{"href":1272},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals#types"," shows how reads are typed:",[737,1275,1276,1285],{},[740,1277,1278],{},[743,1279,1280,1282],{},[746,1281,748],{},[746,1283,1284],{},"TypeScript type",[753,1286,1287,1302,1315,1325,1335,1350,1372,1387,1396,1408,1420],{},[743,1288,1289,1297],{},[758,1290,1291,807,1293,807,1295],{},[488,1292,572],{},[488,1294,954],{},[488,1296,609],{},[758,1298,1299],{},[488,1300,1301],{},"string",[743,1303,1304,1310],{},[758,1305,1306,807,1308],{},[488,1307,708],{},[488,1309,810],{},[758,1311,1312,1314],{},[488,1313,1301],{},", as ISO text",[743,1316,1317,1321],{},[758,1318,1319],{},[488,1320,870],{},[758,1322,1323],{},[488,1324,870],{},[743,1326,1327,1331],{},[758,1328,1329],{},[488,1330,789],{},[758,1332,1333],{},[488,1334,789],{},[743,1336,1337,1341],{},[758,1338,1339],{},[488,1340,655],{},[758,1342,1343,1344,1346,1347],{},"The union of the ",[488,1345,914],{},", or an array of it with ",[488,1348,1349],{},"many",[743,1351,1352,1360],{},[758,1353,1354,807,1356,807,1358],{},[488,1355,882],{},[488,1357,846],{},[488,1359,822],{},[758,1361,1362,1363,1365,1366,1369,1370],{},"An id ",[488,1364,1301],{},", or ",[488,1367,1368],{},"string[]"," with ",[488,1371,1349],{},[743,1373,1374,1378],{},[758,1375,1376],{},[488,1377,923],{},[758,1379,1380,1382,1383,1386],{},[488,1381,929],{},", with the ",[488,1384,1385],{},"units"," as a union",[743,1388,1389,1393],{},[758,1390,1391],{},[488,1392,834],{},[758,1394,1395],{},"An object of its fields",[743,1397,1398,1402],{},[758,1399,1400],{},[488,1401,765],{},[758,1403,1404,1405],{},"A list of objects of its fields, each with an ",[488,1406,1407],{},"id",[743,1409,1410,1414],{},[758,1411,1412],{},[488,1413,777],{},[758,1415,1416,1417],{},"A list of objects, told apart by ",[488,1418,1419],{},"blockType",[743,1421,1422,1428],{},[758,1423,1424,807,1426],{},[488,1425,897],{},[488,1427,858],{},[758,1429,1430,1431,1009,1434,1436],{},"The shapes of the ",[761,1432,1433],{"href":93},"rich text",[761,1435,858],{"href":81}," pages",[497,1438,1440],{"className":499,"code":1439,"language":502,"meta":503,"style":503},"const post = await cms.findOne(\"posts\", { where: { slug } });\npost?.title; \u002F\u002F string, because the field is required\npost?.category; \u002F\u002F \"news\" | \"guide\" | null | undefined\n",[488,1441,1442,1495,1512],{"__ignoreMap":503},[507,1443,1444,1447,1450,1452,1455,1458,1460,1463,1465,1467,1470,1472,1474,1476,1479,1481,1483,1486,1488,1491,1493],{"class":509,"line":510},[507,1445,1446],{"class":517},"const",[507,1448,1449],{"class":521}," post ",[507,1451,526],{"class":525},[507,1453,1454],{"class":513}," await",[507,1456,1457],{"class":521}," cms",[507,1459,1259],{"class":525},[507,1461,1462],{"class":529},"findOne",[507,1464,533],{"class":521},[507,1466,575],{"class":525},[507,1468,1469],{"class":571},"posts",[507,1471,575],{"class":525},[507,1473,578],{"class":525},[507,1475,560],{"class":525},[507,1477,1478],{"class":542}," where",[507,1480,546],{"class":525},[507,1482,560],{"class":525},[507,1484,1485],{"class":521}," slug ",[507,1487,724],{"class":525},[507,1489,1490],{"class":525}," }",[507,1492,727],{"class":521},[507,1494,730],{"class":525},[507,1496,1497,1500,1503,1505,1508],{"class":509,"line":539},[507,1498,1499],{"class":521},"post",[507,1501,1502],{"class":525},"?.",[507,1504,623],{"class":521},[507,1506,1507],{"class":525},";",[507,1509,1511],{"class":1510},"sHwdD"," \u002F\u002F string, because the field is required\n",[507,1513,1514,1516,1518,1521,1523],{"class":509,"line":552},[507,1515,1499],{"class":521},[507,1517,1502],{"class":525},[507,1519,1520],{"class":521},"category",[507,1522,1507],{"class":525},[507,1524,1525],{"class":1510}," \u002F\u002F \"news\" | \"guide\" | null | undefined\n",[990,1527,1528,1543],{},[993,1529,1530,1532,1533,1009,1536,1539,1540,1542],{},[488,1531,1003],{}," removes ",[488,1534,1535],{},"null",[488,1537,1538],{},"undefined"," from the type. Without it, a field can also be ",[488,1541,1535],{}," or missing.",[993,1544,1545,1548,1549,1551,1552,1259],{},[488,1546,1547],{},"populate"," replaces ids with documents, and ",[488,1550,655],{}," drops fields. See ",[761,1553,147],{"href":148},[732,1555,1557],{"id":1556},"validation","Validation",[484,1559,1560],{},"Tenon checks every write on the server. The admin runs most checks too, so editors see errors before they save.",[985,1562,1564],{"id":1563},"built-in-checks","Built-in checks",[484,1566,1567,1568,1570],{},"These options check a value without any code. An empty optional value skips them. Add ",[488,1569,1003],{}," to demand a value.",[1572,1573,1574,1579,1584,1588,1595,1600,1604,1621,1626,1630],"field-group",{},[1575,1576,1578],"field",{":badges":1577,"name":1003,"type":789},"[{\"label\":\"all but join\",\"color\":\"callout\"}]","The value MUST be present. A list needs at least one item.",[1575,1580,1583],{":badges":1581,"name":1582,"type":870},"[{\"label\":\"text, textarea\",\"color\":\"callout\"}]","minLength","The fewest characters.",[1575,1585,1587],{":badges":1581,"name":1586,"type":870},"maxLength","The most characters.",[1575,1589,1591,1592,1259],{":badges":1581,"name":1590,"type":1301},"pattern","A regular expression that the whole value MUST match. Write it as a string, so escape each backslash: ",[488,1593,1594],{},"\"\\\\d{5}\"",[1575,1596,1599],{":badges":1597,"name":1598,"type":870},"[{\"label\":\"number, size\",\"color\":\"callout\"}]","min","The smallest value.",[1575,1601,1603],{":badges":1597,"name":1602,"type":870},"max","The largest value.",[1575,1605,1607,1608,1610,1611,1614,1615,1617,1618,1620],{":badges":1597,"name":1606,"type":870},"step","The value MUST be ",[488,1609,1598],{}," (or ",[488,1612,1613],{},"0",") plus a whole multiple of ",[488,1616,1606],{},", like the HTML ",[488,1619,1606],{}," attribute.",[1575,1622,1625],{":badges":1623,"name":1624,"type":870},"[{\"label\":\"array, blocks\",\"color\":\"callout\"}]","minRows","The fewest items.",[1575,1627,1629],{":badges":1623,"name":1628,"type":870},"maxRows","The most items.",[1575,1631,1634],{":badges":1632,"name":1633,"type":789},"[{\"label\":\"top-level simple fields\",\"color\":\"callout\"}]","unique","No other document has the same value. Only the server checks it. See the rules below.",[497,1636,1638],{"className":499,"code":1637,"language":502,"meta":503,"style":503},"zip: { type: \"text\", pattern: \"\\\\d{5}\" },\nrating: { type: \"number\", min: 1, max: 5 },\nemail: { type: \"text\", unique: true },\n",[488,1639,1640,1678,1720],{"__ignoreMap":503},[507,1641,1642,1645,1647,1649,1651,1653,1655,1657,1659,1661,1664,1666,1668,1671,1674,1676],{"class":509,"line":510},[507,1643,1644],{"class":1103},"zip",[507,1646,546],{"class":525},[507,1648,560],{"class":525},[507,1650,563],{"class":1103},[507,1652,546],{"class":525},[507,1654,568],{"class":525},[507,1656,572],{"class":571},[507,1658,575],{"class":525},[507,1660,578],{"class":525},[507,1662,1663],{"class":1103}," pattern",[507,1665,546],{"class":525},[507,1667,568],{"class":525},[507,1669,1670],{"class":521},"\\\\",[507,1672,1673],{"class":571},"d{5}",[507,1675,575],{"class":525},[507,1677,590],{"class":525},[507,1679,1680,1683,1685,1687,1689,1691,1693,1695,1697,1699,1702,1704,1708,1710,1713,1715,1718],{"class":509,"line":539},[507,1681,1682],{"class":1103},"rating",[507,1684,546],{"class":525},[507,1686,560],{"class":525},[507,1688,563],{"class":1103},[507,1690,546],{"class":525},[507,1692,568],{"class":525},[507,1694,870],{"class":571},[507,1696,575],{"class":525},[507,1698,578],{"class":525},[507,1700,1701],{"class":1103}," min",[507,1703,546],{"class":525},[507,1705,1707],{"class":1706},"sbssI"," 1",[507,1709,578],{"class":525},[507,1711,1712],{"class":1103}," max",[507,1714,546],{"class":525},[507,1716,1717],{"class":1706}," 5",[507,1719,590],{"class":525},[507,1721,1722,1725,1727,1729,1731,1733,1735,1737,1739,1741,1743,1745,1747],{"class":509,"line":552},[507,1723,1724],{"class":1103},"email",[507,1726,546],{"class":525},[507,1728,560],{"class":525},[507,1730,563],{"class":1103},[507,1732,546],{"class":525},[507,1734,568],{"class":525},[507,1736,572],{"class":571},[507,1738,575],{"class":525},[507,1740,578],{"class":525},[507,1742,630],{"class":1103},[507,1744,546],{"class":525},[507,1746,587],{"class":586},[507,1748,590],{"class":525},[484,1750,1751,1753,1754,807,1756,807,1758,807,1760,807,1762,807,1764,807,1766,1768,1769,1771],{},[488,1752,1633],{}," works on top-level ",[488,1755,572],{},[488,1757,954],{},[488,1759,870],{},[488,1761,708],{},[488,1763,810],{},[488,1765,655],{},[488,1767,609],{}," and single ",[488,1770,882],{}," fields of collections:",[990,1773,1774,1777,1780],{},[993,1775,1776],{},"It does not work in groups, lists or globals.",[993,1778,1779],{},"The comparison is exact and case-sensitive.",[993,1781,1782],{},"Empty values never collide.",[985,1784,1786],{"id":1785},"your-own-checks","Your own checks",[484,1788,1789,1792,1793,1795],{},[488,1790,1791],{},"validate"," is a function that returns ",[488,1794,794],{}," or an error message:",[497,1797,1799],{"className":499,"code":1798,"language":502,"meta":503,"style":503},"end: {\n  type: \"date\",\n  validate: (value, { siblingData }) =>\n    !value || value >= siblingData.start || \"Ends before start\",\n},\n",[488,1800,1801,1810,1826,1853,1887],{"__ignoreMap":503},[507,1802,1803,1806,1808],{"class":509,"line":510},[507,1804,1805],{"class":1103},"end",[507,1807,546],{"class":525},[507,1809,549],{"class":525},[507,1811,1812,1815,1817,1819,1821,1823],{"class":509,"line":539},[507,1813,1814],{"class":1103},"  type",[507,1816,546],{"class":525},[507,1818,568],{"class":525},[507,1820,708],{"class":571},[507,1822,575],{"class":525},[507,1824,1825],{"class":525},",\n",[507,1827,1828,1831,1833,1836,1840,1842,1844,1847,1850],{"class":509,"line":552},[507,1829,1830],{"class":1103},"  validate",[507,1832,546],{"class":525},[507,1834,1835],{"class":525}," (",[507,1837,1839],{"class":1838},"sHdIc","value",[507,1841,578],{"class":525},[507,1843,560],{"class":525},[507,1845,1846],{"class":1838}," siblingData",[507,1848,1849],{"class":525}," })",[507,1851,1852],{"class":517}," =>\n",[507,1854,1855,1858,1860,1863,1866,1869,1871,1873,1876,1878,1880,1883,1885],{"class":509,"line":593},[507,1856,1857],{"class":525},"    !",[507,1859,1839],{"class":521},[507,1861,1862],{"class":525}," ||",[507,1864,1865],{"class":521}," value",[507,1867,1868],{"class":525}," >=",[507,1870,1846],{"class":521},[507,1872,1259],{"class":525},[507,1874,1875],{"class":521},"start",[507,1877,1862],{"class":525},[507,1879,568],{"class":525},[507,1881,1882],{"class":571},"Ends before start",[507,1884,575],{"class":525},[507,1886,1825],{"class":525},[507,1888,1889],{"class":509,"line":639},[507,1890,689],{"class":525},[484,1892,1893,1894,1896],{},"The function gets the ",[488,1895,1839],{}," and an object with these keys:",[737,1898,1899,1909],{},[740,1900,1901],{},[743,1902,1903,1906],{},[746,1904,1905],{},"Key",[746,1907,1908],{},"Holds",[753,1910,1911,1921,1931,1941,1960,1970],{},[743,1912,1913,1918],{},[758,1914,1915],{},[488,1916,1917],{},"siblingData",[758,1919,1920],{},"The values next to this field: same document, group or list item",[743,1922,1923,1928],{},[758,1924,1925],{},[488,1926,1927],{},"data",[758,1929,1930],{},"The whole document",[743,1932,1933,1938],{},[758,1934,1935],{},[488,1936,1937],{},"originalDoc",[758,1939,1940],{},"The stored document. Empty on create",[743,1942,1943,1948],{},[758,1944,1945],{},[488,1946,1947],{},"operation",[758,1949,1950,1951,807,1954,795,1957],{},"The write: ",[488,1952,1953],{},"create",[488,1955,1956],{},"update",[488,1958,1959],{},"setGlobal",[743,1961,1962,1967],{},[758,1963,1964],{},[488,1965,1966],{},"cms",[758,1968,1969],{},"The local API. Use it for lookups",[743,1971,1972,1977],{},[758,1973,1974],{},[488,1975,1976],{},"user",[758,1978,1979],{},"The signed-in user",[484,1981,1982,1983,1986],{},"The function can be ",[488,1984,1985],{},"async",". It runs on the server only.",[985,1988,1990],{"id":1989},"standard-schema","Standard Schema",[484,1992,1993,1995,1996,2001],{},[488,1994,1791],{}," also takes a ",[761,1997,1990],{"href":1998,"rel":1999},"https:\u002F\u002Fstandardschema.dev",[2000],"nofollow",". Zod, Valibot and ArkType schemas all work, so you can reuse a schema you already have:",[497,2003,2005],{"className":499,"code":2004,"language":502,"meta":503,"style":503},"import { z } from \"zod\";\n\nemail: { type: \"text\", validate: z.email(\"Not an email\") },\nwebsite: { type: \"text\", validate: z.url() },\n",[488,2006,2007,2030,2036,2081],{"__ignoreMap":503},[507,2008,2009,2012,2014,2017,2019,2021,2023,2026,2028],{"class":509,"line":510},[507,2010,2011],{"class":513},"import",[507,2013,560],{"class":525},[507,2015,2016],{"class":521}," z",[507,2018,1490],{"class":525},[507,2020,616],{"class":513},[507,2022,568],{"class":525},[507,2024,2025],{"class":571},"zod",[507,2027,575],{"class":525},[507,2029,730],{"class":525},[507,2031,2032],{"class":509,"line":539},[507,2033,2035],{"emptyLinePlaceholder":2034},true,"\n",[507,2037,2038,2040,2042,2044,2046,2048,2050,2052,2054,2056,2059,2061,2063,2065,2067,2069,2071,2074,2076,2079],{"class":509,"line":552},[507,2039,1724],{"class":1103},[507,2041,546],{"class":525},[507,2043,560],{"class":525},[507,2045,563],{"class":1103},[507,2047,546],{"class":525},[507,2049,568],{"class":525},[507,2051,572],{"class":571},[507,2053,575],{"class":525},[507,2055,578],{"class":525},[507,2057,2058],{"class":1103}," validate",[507,2060,546],{"class":525},[507,2062,2016],{"class":521},[507,2064,1259],{"class":525},[507,2066,1724],{"class":529},[507,2068,533],{"class":542},[507,2070,575],{"class":525},[507,2072,2073],{"class":571},"Not an email",[507,2075,575],{"class":525},[507,2077,2078],{"class":542},") ",[507,2080,689],{"class":525},[507,2082,2083,2086,2088,2090,2092,2094,2096,2098,2100,2102,2104,2106,2108,2110,2113,2116],{"class":509,"line":593},[507,2084,2085],{"class":1103},"website",[507,2087,546],{"class":525},[507,2089,560],{"class":525},[507,2091,563],{"class":1103},[507,2093,546],{"class":525},[507,2095,568],{"class":525},[507,2097,572],{"class":571},[507,2099,575],{"class":525},[507,2101,578],{"class":525},[507,2103,2058],{"class":1103},[507,2105,546],{"class":525},[507,2107,2016],{"class":521},[507,2109,1259],{"class":525},[507,2111,2112],{"class":529},"url",[507,2114,2115],{"class":542},"() ",[507,2117,689],{"class":525},[990,2119,2120,2123,2135,2138],{},[993,2121,2122],{},"The first issue of the schema is the error message.",[993,2124,2125,2126,2128,2129,2132,2133,1570],{},"An empty value (",[488,2127,1535],{},", missing or ",[488,2130,2131],{},"\"\"",") skips the schema, like the built-in checks. Add ",[488,2134,1003],{},[993,2136,2137],{},"The schema only checks. The stored value stays what the editor typed, even when the schema transforms it.",[993,2139,2140],{},"It runs on the server only.",[985,2142,2144],{"id":2143},"where-checks-run","Where checks run",[737,2146,2147,2160],{},[740,2148,2149],{},[743,2150,2151,2154,2157],{},[746,2152,2153],{},"Rule",[746,2155,2156],{},"In the admin",[746,2158,2159],{},"On the server",[753,2161,2162,2174,2188,2203],{},[743,2163,2164,2169,2172],{},[758,2165,2166,2168],{},[488,2167,1003],{}," and the built-in checks",[758,2170,2171],{},"Yes",[758,2173,2171],{},[743,2175,2176,2184,2186],{},[758,2177,2178,2181,2182],{},[488,2179,2180],{},"condition"," and a plain ",[488,2183,997],{},[758,2185,2171],{},[758,2187,2171],{},[743,2189,2190,2198,2201],{},[758,2191,2192,2194,2195,2197],{},[488,2193,1791],{},", a function ",[488,2196,997],{},", hooks",[758,2199,2200],{},"No",[758,2202,2171],{},[743,2204,2205,2209,2211],{},[758,2206,2207],{},[488,2208,1633],{},[758,2210,2200],{},[758,2212,2171],{},[484,2214,2215,2216,2219],{},"Errors of the server show at the field in the admin. Over HTTP, all errors of one write come back in one ",[488,2217,2218],{},"400"," response.",[732,2221,2223],{"id":2222},"conditions","Conditions",[484,2225,2226,2228],{},[488,2227,2180],{}," shows a field only when other values match. This example shows a field for each kind of media:",[497,2230,2232],{"className":499,"code":2231,"language":502,"meta":503,"style":503},"fields: {\n  mediaType: { type: \"select\", options: [\"image\", \"video\", \"youtube\"] },\n  image: { type: \"image\", condition: { mediaType: \"image\" } },\n  url: { type: \"text\", required: true, condition: { mediaType: \"youtube\" } },\n  caption: { type: \"text\", condition: { mediaType: { ne: \"youtube\" } } },\n}\n",[488,2233,2234,2242,2297,2340,2389,2439],{"__ignoreMap":503},[507,2235,2236,2238,2240],{"class":509,"line":510},[507,2237,490],{"class":1103},[507,2239,546],{"class":525},[507,2241,549],{"class":525},[507,2243,2244,2247,2249,2251,2253,2255,2257,2259,2261,2263,2265,2267,2269,2271,2273,2275,2277,2279,2282,2284,2286,2288,2291,2293,2295],{"class":509,"line":539},[507,2245,2246],{"class":1103},"  mediaType",[507,2248,546],{"class":525},[507,2250,560],{"class":525},[507,2252,563],{"class":1103},[507,2254,546],{"class":525},[507,2256,568],{"class":525},[507,2258,655],{"class":571},[507,2260,575],{"class":525},[507,2262,578],{"class":525},[507,2264,662],{"class":1103},[507,2266,546],{"class":525},[507,2268,667],{"class":542},[507,2270,575],{"class":525},[507,2272,846],{"class":571},[507,2274,575],{"class":525},[507,2276,578],{"class":525},[507,2278,568],{"class":525},[507,2280,2281],{"class":571},"video",[507,2283,575],{"class":525},[507,2285,578],{"class":525},[507,2287,568],{"class":525},[507,2289,2290],{"class":571},"youtube",[507,2292,575],{"class":525},[507,2294,686],{"class":542},[507,2296,689],{"class":525},[507,2298,2299,2302,2304,2306,2308,2310,2312,2314,2316,2318,2321,2323,2325,2328,2330,2332,2334,2336,2338],{"class":509,"line":552},[507,2300,2301],{"class":1103},"  image",[507,2303,546],{"class":525},[507,2305,560],{"class":525},[507,2307,563],{"class":1103},[507,2309,546],{"class":525},[507,2311,568],{"class":525},[507,2313,846],{"class":571},[507,2315,575],{"class":525},[507,2317,578],{"class":525},[507,2319,2320],{"class":1103}," condition",[507,2322,546],{"class":525},[507,2324,560],{"class":525},[507,2326,2327],{"class":1103}," mediaType",[507,2329,546],{"class":525},[507,2331,568],{"class":525},[507,2333,846],{"class":571},[507,2335,575],{"class":525},[507,2337,1490],{"class":525},[507,2339,590],{"class":525},[507,2341,2342,2345,2347,2349,2351,2353,2355,2357,2359,2361,2363,2365,2367,2369,2371,2373,2375,2377,2379,2381,2383,2385,2387],{"class":509,"line":593},[507,2343,2344],{"class":1103},"  url",[507,2346,546],{"class":525},[507,2348,560],{"class":525},[507,2350,563],{"class":1103},[507,2352,546],{"class":525},[507,2354,568],{"class":525},[507,2356,572],{"class":571},[507,2358,575],{"class":525},[507,2360,578],{"class":525},[507,2362,581],{"class":1103},[507,2364,546],{"class":525},[507,2366,587],{"class":586},[507,2368,578],{"class":525},[507,2370,2320],{"class":1103},[507,2372,546],{"class":525},[507,2374,560],{"class":525},[507,2376,2327],{"class":1103},[507,2378,546],{"class":525},[507,2380,568],{"class":525},[507,2382,2290],{"class":571},[507,2384,575],{"class":525},[507,2386,1490],{"class":525},[507,2388,590],{"class":525},[507,2390,2391,2394,2396,2398,2400,2402,2404,2406,2408,2410,2412,2414,2416,2418,2420,2422,2425,2427,2429,2431,2433,2435,2437],{"class":509,"line":639},[507,2392,2393],{"class":1103},"  caption",[507,2395,546],{"class":525},[507,2397,560],{"class":525},[507,2399,563],{"class":1103},[507,2401,546],{"class":525},[507,2403,568],{"class":525},[507,2405,572],{"class":571},[507,2407,575],{"class":525},[507,2409,578],{"class":525},[507,2411,2320],{"class":1103},[507,2413,546],{"class":525},[507,2415,560],{"class":525},[507,2417,2327],{"class":1103},[507,2419,546],{"class":525},[507,2421,560],{"class":525},[507,2423,2424],{"class":1103}," ne",[507,2426,546],{"class":525},[507,2428,568],{"class":525},[507,2430,2290],{"class":571},[507,2432,575],{"class":525},[507,2434,1490],{"class":525},[507,2436,1490],{"class":525},[507,2438,590],{"class":525},[507,2440,2441],{"class":509,"line":692},[507,2442,1245],{"class":525},[484,2444,2445,2446,2448,2449,2451,2452,1009,2454,2457,2458,2460,2461,2463],{},"Here the editor picks ",[488,2447,2290],{},". The admin shows ",[488,2450,2112],{}," and hides ",[488,2453,846],{},[488,2455,2456],{},"caption",". The ",[488,2459,1003],{}," check of ",[488,2462,2112],{}," applies only now.",[985,2465,2467],{"id":2466},"match-rules","Match rules",[990,2469,2470,2500,2503,2513,2516],{},[993,2471,2472,2473,807,2476,807,2479,807,2482,807,2485,807,2488,807,2491,807,2494,1009,2497,1259],{},"A plain value means \"equals\". The operators are ",[488,2474,2475],{},"eq",[488,2477,2478],{},"ne",[488,2480,2481],{},"in",[488,2483,2484],{},"notIn",[488,2486,2487],{},"gt",[488,2489,2490],{},"gte",[488,2492,2493],{},"lt",[488,2495,2496],{},"lte",[488,2498,2499],{},"exists",[993,2501,2502],{},"Several keys MUST all match.",[993,2504,2505,2508,2509,2512],{},[488,2506,2507],{},"$some"," matches when one condition in a list matches. ",[488,2510,2511],{},"$every"," matches when all do.",[993,2514,2515],{},"A key names a field next to this one: in the same document, group or list item.",[993,2517,2518,2519,2522,2523,1259],{},"Start a key with ",[488,2520,2521],{},"\u002F"," to name a field from the document root, like ",[488,2524,2525],{},"\"\u002Fsettings.mode\"",[497,2527,2529],{"className":499,"code":2528,"language":502,"meta":503,"style":503},"fields: {\n  mediaType: { type: \"select\", options: [\"image\", \"video\", \"youtube\"] },\n  forSale: { type: \"boolean\" },\n  price: { type: \"number\", condition: { forSale: true } },\n  note: { type: \"text\", condition: { price: { gt: 0 } } },\n  \u002F\u002F One of several values.\n  player: {\n    type: \"text\",\n    condition: { $some: [{ mediaType: \"video\" }, { mediaType: \"youtube\" }] },\n  },\n  \u002F\u002F A field in a group or list item reads a field of the document root.\n  badge: { type: \"text\", condition: { \"\u002FforSale\": true } },\n}\n",[488,2530,2531,2539,2591,2612,2650,2698,2703,2712,2727,2778,2783,2789,2833],{"__ignoreMap":503},[507,2532,2533,2535,2537],{"class":509,"line":510},[507,2534,490],{"class":1103},[507,2536,546],{"class":525},[507,2538,549],{"class":525},[507,2540,2541,2543,2545,2547,2549,2551,2553,2555,2557,2559,2561,2563,2565,2567,2569,2571,2573,2575,2577,2579,2581,2583,2585,2587,2589],{"class":509,"line":539},[507,2542,2246],{"class":1103},[507,2544,546],{"class":525},[507,2546,560],{"class":525},[507,2548,563],{"class":1103},[507,2550,546],{"class":525},[507,2552,568],{"class":525},[507,2554,655],{"class":571},[507,2556,575],{"class":525},[507,2558,578],{"class":525},[507,2560,662],{"class":1103},[507,2562,546],{"class":525},[507,2564,667],{"class":542},[507,2566,575],{"class":525},[507,2568,846],{"class":571},[507,2570,575],{"class":525},[507,2572,578],{"class":525},[507,2574,568],{"class":525},[507,2576,2281],{"class":571},[507,2578,575],{"class":525},[507,2580,578],{"class":525},[507,2582,568],{"class":525},[507,2584,2290],{"class":571},[507,2586,575],{"class":525},[507,2588,686],{"class":542},[507,2590,689],{"class":525},[507,2592,2593,2596,2598,2600,2602,2604,2606,2608,2610],{"class":509,"line":552},[507,2594,2595],{"class":1103},"  forSale",[507,2597,546],{"class":525},[507,2599,560],{"class":525},[507,2601,563],{"class":1103},[507,2603,546],{"class":525},[507,2605,568],{"class":525},[507,2607,789],{"class":571},[507,2609,575],{"class":525},[507,2611,590],{"class":525},[507,2613,2614,2617,2619,2621,2623,2625,2627,2629,2631,2633,2635,2637,2639,2642,2644,2646,2648],{"class":509,"line":593},[507,2615,2616],{"class":1103},"  price",[507,2618,546],{"class":525},[507,2620,560],{"class":525},[507,2622,563],{"class":1103},[507,2624,546],{"class":525},[507,2626,568],{"class":525},[507,2628,870],{"class":571},[507,2630,575],{"class":525},[507,2632,578],{"class":525},[507,2634,2320],{"class":1103},[507,2636,546],{"class":525},[507,2638,560],{"class":525},[507,2640,2641],{"class":1103}," forSale",[507,2643,546],{"class":525},[507,2645,587],{"class":586},[507,2647,1490],{"class":525},[507,2649,590],{"class":525},[507,2651,2652,2655,2657,2659,2661,2663,2665,2667,2669,2671,2673,2675,2677,2680,2682,2684,2687,2689,2692,2694,2696],{"class":509,"line":639},[507,2653,2654],{"class":1103},"  note",[507,2656,546],{"class":525},[507,2658,560],{"class":525},[507,2660,563],{"class":1103},[507,2662,546],{"class":525},[507,2664,568],{"class":525},[507,2666,572],{"class":571},[507,2668,575],{"class":525},[507,2670,578],{"class":525},[507,2672,2320],{"class":1103},[507,2674,546],{"class":525},[507,2676,560],{"class":525},[507,2678,2679],{"class":1103}," price",[507,2681,546],{"class":525},[507,2683,560],{"class":525},[507,2685,2686],{"class":1103}," gt",[507,2688,546],{"class":525},[507,2690,2691],{"class":1706}," 0",[507,2693,1490],{"class":525},[507,2695,1490],{"class":525},[507,2697,590],{"class":525},[507,2699,2700],{"class":509,"line":692},[507,2701,2702],{"class":1510},"  \u002F\u002F One of several values.\n",[507,2704,2705,2708,2710],{"class":509,"line":715},[507,2706,2707],{"class":1103},"  player",[507,2709,546],{"class":525},[507,2711,549],{"class":525},[507,2713,2714,2717,2719,2721,2723,2725],{"class":509,"line":721},[507,2715,2716],{"class":1103},"    type",[507,2718,546],{"class":525},[507,2720,568],{"class":525},[507,2722,572],{"class":571},[507,2724,575],{"class":525},[507,2726,1825],{"class":525},[507,2728,2730,2733,2735,2737,2740,2742,2744,2747,2749,2751,2753,2755,2757,2760,2762,2764,2766,2768,2770,2772,2774,2776],{"class":509,"line":2729},9,[507,2731,2732],{"class":1103},"    condition",[507,2734,546],{"class":525},[507,2736,560],{"class":525},[507,2738,2739],{"class":1103}," $some",[507,2741,546],{"class":525},[507,2743,667],{"class":542},[507,2745,2746],{"class":525},"{",[507,2748,2327],{"class":542},[507,2750,546],{"class":525},[507,2752,568],{"class":525},[507,2754,2281],{"class":571},[507,2756,575],{"class":525},[507,2758,2759],{"class":525}," },",[507,2761,560],{"class":525},[507,2763,2327],{"class":542},[507,2765,546],{"class":525},[507,2767,568],{"class":525},[507,2769,2290],{"class":571},[507,2771,575],{"class":525},[507,2773,1490],{"class":525},[507,2775,686],{"class":542},[507,2777,689],{"class":525},[507,2779,2781],{"class":509,"line":2780},10,[507,2782,718],{"class":525},[507,2784,2786],{"class":509,"line":2785},11,[507,2787,2788],{"class":1510},"  \u002F\u002F A field in a group or list item reads a field of the document root.\n",[507,2790,2792,2795,2797,2799,2801,2803,2805,2807,2809,2811,2813,2815,2817,2819,2822,2824,2827,2829,2831],{"class":509,"line":2791},12,[507,2793,2794],{"class":1103},"  badge",[507,2796,546],{"class":525},[507,2798,560],{"class":525},[507,2800,563],{"class":1103},[507,2802,546],{"class":525},[507,2804,568],{"class":525},[507,2806,572],{"class":571},[507,2808,575],{"class":525},[507,2810,578],{"class":525},[507,2812,2320],{"class":1103},[507,2814,546],{"class":525},[507,2816,560],{"class":525},[507,2818,568],{"class":525},[507,2820,2821],{"class":571},"\u002FforSale",[507,2823,575],{"class":525},[507,2825,2826],{"class":542},": ",[507,2828,794],{"class":586},[507,2830,1490],{"class":525},[507,2832,590],{"class":525},[507,2834,2836],{"class":509,"line":2835},13,[507,2837,1245],{"class":525},[985,2839,2841],{"id":2840},"what-a-false-condition-does","What a false condition does",[990,2843,2844,2849,2855],{},[993,2845,2846,2847,1259],{},"The admin hides the field and saves it as ",[488,2848,1535],{},[993,2850,2851,2852,2854],{},"The server skips ",[488,2853,1003],{}," and the other checks for it.",[993,2856,2857],{},"Reads ignore conditions and return what is stored.",[484,2859,2860,2862,2863,2865,2866,1259],{},[488,2861,2180],{}," is JSON, because the admin evaluates it in the browser. For logic that needs code, use ",[488,2864,1791],{}," or a ",[761,2867,2868],{"href":172},"hook",[2870,2871,2872],"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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":503,"searchDepth":539,"depth":539,"links":2874},[2875,2876,2880,2881,2882,2888],{"id":734,"depth":539,"text":735},{"id":972,"depth":539,"text":973,"children":2877},[2878,2879],{"id":987,"depth":552,"text":988},{"id":1019,"depth":552,"text":1020},{"id":1087,"depth":539,"text":1032},{"id":1262,"depth":539,"text":1263},{"id":1556,"depth":539,"text":1557,"children":2883},[2884,2885,2886,2887],{"id":1563,"depth":552,"text":1564},{"id":1785,"depth":552,"text":1786},{"id":1989,"depth":552,"text":1990},{"id":2143,"depth":552,"text":2144},{"id":2222,"depth":539,"text":2223,"children":2889},[2890,2891],{"id":2466,"depth":552,"text":2467},{"id":2840,"depth":552,"text":2841},"Pick a field type, set its options and check its values.","md",null,{},{"title":50},{"title":45,"description":2892},"to7YCKfPC01dw83jR4e6wAmMivUSQHywYFxey4KzzvA",[2900,2902],{"title":41,"path":42,"stem":43,"description":2901,"children":-1},"Describe content in TypeScript and get typed documents back.",{"title":52,"path":53,"stem":54,"description":2903,"children":-1},"A list of items that all have the same fields.",{"data":2905,"body":2906},{},{"type":2907,"children":2908},"root",[2909],{"type":2910,"tag":484,"props":2911,"children":2912},"element",{},[2913],{"type":572,"value":2914},"The label in the admin. Defaults to the key. Pass an object to translate it.",{"data":2916,"body":2917},{},{"type":2907,"children":2918},[2919],{"type":2910,"tag":484,"props":2920,"children":2921},{},[2922],{"type":572,"value":2923},"Help text below the input.",{"data":2925,"body":2926},{},{"type":2907,"children":2927},[2928],{"type":2910,"tag":484,"props":2929,"children":2930},{},[2931],{"type":572,"value":1578},{"data":2933,"body":2934},{},{"type":2907,"children":2935},[2936],{"type":2910,"tag":484,"props":2937,"children":2938},{},[2939,2941,2947],{"type":572,"value":2940},"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":2910,"tag":488,"props":2942,"children":2944},{"className":2943},[],[2945],{"type":572,"value":2946},"({ user }) => user?.id",{"type":572,"value":2948},", runs on the server only.",{"data":2950,"body":2951},{},{"type":2907,"children":2952},[2953],{"type":2910,"tag":484,"props":2954,"children":2955},{},[2956,2958,2963],{"type":572,"value":2957},"No other document of the collection has the same value. See ",{"type":2910,"tag":761,"props":2959,"children":2961},{"href":2960},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#validation",[2962],{"type":572,"value":1557},{"type":572,"value":1259},{"data":2965,"body":2966},{},{"type":2907,"children":2967},[2968],{"type":2910,"tag":484,"props":2969,"children":2970},{},[2971,2973,2978],{"type":572,"value":2972},"Your own check. See ",{"type":2910,"tag":761,"props":2974,"children":2976},{"href":2975},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#your-own-checks",[2977],{"type":572,"value":1786},{"type":572,"value":1259},{"data":2980,"body":2981},{},{"type":2907,"children":2982},[2983],{"type":2910,"tag":484,"props":2984,"children":2985},{},[2986,2988,2993],{"type":572,"value":2987},"Show the field only when other values match. See ",{"type":2910,"tag":761,"props":2989,"children":2991},{"href":2990},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#conditions",[2992],{"type":572,"value":2223},{"type":572,"value":1259},{"data":2995,"body":2996},{},{"type":2907,"children":2997},[2998],{"type":2910,"tag":484,"props":2999,"children":3000},{},[3001],{"type":572,"value":3002},"Public reads leave the value out. Signed-in users and server code see it.",{"data":3004,"body":3005},{},{"type":2907,"children":3006},[3007],{"type":2910,"tag":484,"props":3008,"children":3009},{},[3010,3012,3017],{"type":572,"value":3011},"Who can read and write this field. See ",{"type":2910,"tag":761,"props":3013,"children":3014},{"href":206},[3015],{"type":572,"value":3016},"Access control",{"type":572,"value":1259},{"data":3019,"body":3020},{},{"type":2907,"children":3021},[3022],{"type":2910,"tag":484,"props":3023,"children":3024},{},[3025,3027,3032,3034,3038],{"type":572,"value":3026},"In a localized collection, every field is stored per language. ",{"type":2910,"tag":488,"props":3028,"children":3030},{"className":3029},[],[3031],{"type":572,"value":798},{"type":572,"value":3033}," shares this field between languages. Only on top-level fields. See ",{"type":2910,"tag":761,"props":3035,"children":3036},{"href":168},[3037],{"type":572,"value":167},{"type":572,"value":1259},{"data":3040,"body":3041},{},{"type":2907,"children":3042},[3043],{"type":2910,"tag":484,"props":3044,"children":3045},{},[3046,3048,3052],{"type":572,"value":3047},"Functions that run for this field on every write and read, before the collection's hooks. See ",{"type":2910,"tag":761,"props":3049,"children":3050},{"href":172},[3051],{"type":572,"value":171},{"type":572,"value":1259},{"data":3054,"body":3055},{},{"type":2907,"children":3056},[3057],{"type":2910,"tag":484,"props":3058,"children":3059},{},[3060],{"type":572,"value":3061},"The admin does not show the input. The value still saves. Use it for values a hook sets.",{"data":3063,"body":3064},{},{"type":2907,"children":3065},[3066],{"type":2910,"tag":484,"props":3067,"children":3068},{},[3069],{"type":572,"value":3070},"The admin shows the input disabled. Code and hooks can still write it.",{"data":3072,"body":3073},{},{"type":2907,"children":3074},[3075],{"type":2910,"tag":484,"props":3076,"children":3077},{},[3078,3080,3086],{"type":572,"value":3079},"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":2910,"tag":488,"props":3081,"children":3083},{"className":3082},[],[3084],{"type":572,"value":3085},"\"full\"",{"type":572,"value":1259},{"data":3088,"body":3089},{},{"type":2907,"children":3090},[3091],{"type":2910,"tag":484,"props":3092,"children":3093},{},[3094],{"type":572,"value":3095},"A line above the field, to break up a long form. A string adds a heading above the line.",{"data":3097,"body":3098},{},{"type":2907,"children":3099},[3100],{"type":2910,"tag":484,"props":3101,"children":3102},{},[3103,3105,3110],{"type":572,"value":3104},"The tab that shows this field. Define the tabs with ",{"type":2910,"tag":488,"props":3106,"children":3108},{"className":3107},[],[3109],{"type":572,"value":1250},{"type":572,"value":3111}," on the collection, global, group or list item.",{"data":3113,"body":3114},{},{"type":2907,"children":3115},[3116],{"type":2910,"tag":484,"props":3117,"children":3118},{},[3119,3121,3126],{"type":572,"value":3120},"The box that holds this field. Define the boxes with ",{"type":2910,"tag":488,"props":3122,"children":3124},{"className":3123},[],[3125],{"type":572,"value":1253},{"type":572,"value":1259},1795884714285]