[{"data":1,"prerenderedAt":6892},["ShallowReactive",2],{"content-navigation":3,"$fY4mAj2l3kRkTDttxn6FGzqBc2O9HAJ2qp-_8LmMX7aw":1841,"/guides/connect/json-queries-reference":1846,"/guides/connect/json-queries-reference-surround":6889},[4,112,119,224,333,429,481,1096,1122,1151],{"title":5,"path":6,"stem":7,"children":8,"page":89},"Partials","/_partials","_partials",[9,15,20,25,29,33,38,42,47,51,56,60,64,68,90,94,98,103,108],{"title":10,"path":11,"stem":12,"description":13,"icon":14,"links":14},"Advanced Field Creation Mode","/_partials/advanced-field-creation-mode","_partials/advanced-field-creation-mode","You can use these advanced options to automatically set the values of fields at specific events by clicking on \"Continue in Advanced Field Creation Mode\".",null,{"title":16,"path":17,"stem":18,"description":19,"icon":14,"links":14},"Authentication","/_partials/authentication","_partials/authentication","While the Public role can be configured to make data available without authentication, anything that is not public requires a user to authenticate their requests.",{"title":21,"path":22,"stem":23,"description":24,"icon":14,"links":14},"Config Env Vars","/_partials/config-env-vars","_partials/config-env-vars","",{"title":26,"path":27,"stem":28,"description":24,"icon":14,"links":14},"Deployment Public Instance","/_partials/deployment-public-instance","_partials/deployment-public-instance",{"title":30,"path":31,"stem":32,"description":24,"icon":14,"links":14},"Engine Studio Box","/_partials/engine-studio-box","_partials/engine-studio-box",{"title":34,"path":35,"stem":36,"description":37,"icon":14,"links":14},"Extension Hook Footguns","/_partials/extension-hook-footguns","_partials/extension-hook-footguns","Directus reads system collections to operate. Be careful when modifying the output of system collection read or query events. Also ensure not to directly or indirectly emit the same event your hook is handling or you will create an infinite loop.",{"title":39,"path":40,"stem":41,"description":24,"icon":14,"links":14},"Extension Hook System Collections","/_partials/extension-hook-system-collections","_partials/extension-hook-system-collections",{"title":43,"path":44,"stem":45,"description":46,"icon":14,"links":14},"Extensions Api","/_partials/extensions-api","_partials/extensions-api","This extension type is loaded into the Directus process. They can use the provided services exported by the @directus/extensions-sdk package and can be written in JavaScript or TypeScript.",{"title":48,"path":49,"stem":50,"description":24,"icon":14,"links":14},"Extensions Api Internals","/_partials/extensions-api-internals","_partials/extensions-api-internals",{"title":52,"path":53,"stem":54,"description":55,"icon":14,"links":14},"Extensions App","/_partials/extensions-app","_partials/extensions-app","This extension type is loaded into the Directus Data Studio. They are are built with Vue 3, and can use the provided composables exported by the @directus/extensions-sdk package. Extensions can be written in JavaScript or TypeScript.",{"title":57,"path":58,"stem":59,"description":24,"icon":14,"links":14},"Extensions App Internals","/_partials/extensions-app-internals","_partials/extensions-app-internals",{"title":61,"path":62,"stem":63,"description":24,"icon":14,"links":14},"Extensions Theme","/_partials/extensions-theme","_partials/extensions-theme",{"title":65,"path":66,"stem":67,"description":24,"icon":14,"links":14},"Extensions Uid","/_partials/extensions-uid","_partials/extensions-uid",{"title":69,"path":70,"stem":71,"children":72,"page":89},"Home Hero","/_partials/home-hero","_partials/home-hero",[73,77,81,85],{"title":74,"path":75,"stem":76,"description":24,"icon":14,"links":14},"Auth","/_partials/home-hero/auth","_partials/home-hero/auth",{"title":78,"path":79,"stem":80,"description":24,"icon":14,"links":14},"Data","/_partials/home-hero/data","_partials/home-hero/data",{"title":82,"path":83,"stem":84,"description":24,"icon":14,"links":14},"File","/_partials/home-hero/file","_partials/home-hero/file",{"title":86,"path":87,"stem":88,"description":24,"icon":14,"links":14},"Realtime","/_partials/home-hero/realtime","_partials/home-hero/realtime",false,{"title":91,"path":92,"stem":93,"description":24,"icon":14,"links":14},"Json Function","/_partials/json-function","_partials/json-function",{"title":95,"path":96,"stem":97,"description":24,"icon":14,"links":14},"License","/_partials/license","_partials/license",{"title":99,"path":100,"stem":101,"description":102,"icon":14,"links":14},"Query Functions","/_partials/query-functions","_partials/query-functions","Functions accept a field and return a modified value. Functions can be used in any query parameter you'd normally supply a field key, including fields, aggregation, and filters.",{"title":104,"path":105,"stem":106,"description":107,"icon":14,"links":14},"Quickstart Making Calls","/_partials/quickstart-making-calls","_partials/quickstart-making-calls","You can use a visual API testing tool like Postman or Hoppscotch, a terminal-based based tool like curl or HTTPie, or make HTTP requests directly in a script written in your programming language of choice.",{"title":109,"path":110,"stem":111,"description":24,"icon":14,"links":14},"Snippet Auth Token","/_partials/snippet-auth-token","_partials/snippet-auth-token",{"title":113,"path":114,"stem":115,"children":116,"description":118,"icon":14,"links":14},"Directus API Reference","/api","api/index",[117],{"title":113,"path":114,"stem":115,"description":118,"icon":14,"links":14},"Learn how to use our API",{"title":120,"path":121,"stem":122,"children":123,"page":89},"Cloud","/cloud","cloud",[124,144,174,204],{"title":125,"path":126,"stem":127,"children":128,"page":89},"Getting Started","/cloud/getting-started","cloud/1.getting-started",[129,134,139],{"title":130,"path":131,"stem":132,"description":133,"icon":14,"links":14},"Introduction","/cloud/getting-started/introduction","cloud/1.getting-started/1.introduction","Whether you're a hobbyist, startup, or enterprise, our flexible Directus Cloud platform lets you get up and running with Directus quickly.",{"title":135,"path":136,"stem":137,"description":138,"icon":14,"links":14},"Cloud Teams","/cloud/getting-started/teams","cloud/1.getting-started/2.teams","A team is an organizational system that groups accounts together as team members and provides consolidated billing for projects.",{"title":140,"path":141,"stem":142,"description":143,"icon":14,"links":14},"Managing Cloud Accounts","/cloud/getting-started/accounts","cloud/1.getting-started/3.accounts","An account is your portal to Directus Cloud. You can use it to manage your teams, team members, projects and billing.",{"title":145,"path":146,"stem":147,"children":148,"page":89},"Projects","/cloud/projects","cloud/2.projects",[149,154,159,164,169],{"title":150,"path":151,"stem":152,"description":153,"icon":14,"links":14},"Create a Project","/cloud/projects/create","cloud/2.projects/1.create","Create a project in Directus Cloud.",{"title":155,"path":156,"stem":157,"description":158,"icon":14,"links":14},"Destroy a Project","/cloud/projects/destroy","cloud/2.projects/2.destroy","Destroy a Directus Cloud project and cancel your subscription.",{"title":160,"path":161,"stem":162,"description":163,"icon":14,"links":14},"Version Upgrades","/cloud/projects/version-upgrades","cloud/2.projects/3.version-upgrades","Learn about automatic upgrades and version locking in Directus Cloud.",{"title":165,"path":166,"stem":167,"description":168,"icon":14,"links":14},"Monitoring Projects","/cloud/projects/monitoring","cloud/2.projects/4.monitoring","Learn how to monitor your Directus Cloud project.",{"title":170,"path":171,"stem":172,"description":173,"icon":14,"links":14},"Backups","/cloud/projects/backups","cloud/2.projects/5.backups","Learn about automatic backups in Directus Cloud.",{"title":175,"path":176,"stem":177,"children":178,"page":89},"Configuration","/cloud/configuration","cloud/3.configuration",[179,184,189,194,199],{"title":180,"path":181,"stem":182,"description":183,"icon":14,"links":14},"Custom Domains","/cloud/configuration/custom-domains","cloud/3.configuration/1.custom-domains","Learn how to set up a custom domain for your Directus Enterprise Cloud project.",{"title":185,"path":186,"stem":187,"description":188,"icon":14,"links":14},"Environment Variables","/cloud/configuration/environment-variables","cloud/3.configuration/2.environment-variables","Learn about environment variables in Directus Cloud.",{"title":190,"path":191,"stem":192,"description":193,"icon":14,"links":14},"Direct Database Access","/cloud/configuration/direct-database-access","cloud/3.configuration/3.direct-database-access","Learn how to directly access your Directus Cloud project's database.",{"title":195,"path":196,"stem":197,"description":198,"icon":14,"links":14},"Custom Extensions","/cloud/configuration/custom-extensions","cloud/3.configuration/4.custom-extensions","Learn how to deploy custom extensions to your Directus Cloud project.",{"title":200,"path":201,"stem":202,"description":203,"icon":14,"links":14},"Datacenter Regions","/cloud/configuration/datacenter-regions","cloud/3.configuration/5.datacenter-regions","Learn where datacenters for cloud projects are located.",{"title":205,"path":206,"stem":207,"children":208,"page":89},"Billing","/cloud/billing","cloud/4.billing",[209,214,219],{"title":210,"path":211,"stem":212,"description":213,"icon":14,"links":14},"Manage Billing","/cloud/billing/manage-billing","cloud/4.billing/1.manage-billing","Learn how to manage billing for your Directus Cloud project.",{"title":215,"path":216,"stem":217,"description":218,"icon":14,"links":14},"Changing Your Tier","/cloud/billing/changing-tier","cloud/4.billing/2.changing-tier","Learn how to change the tier of your Directus Cloud project.",{"title":220,"path":221,"stem":222,"description":223,"icon":14,"links":14},"Cancel Your Subscription","/cloud/billing/cancel-subscription","cloud/4.billing/3.cancel-subscription","Learn how to cancel your Directus Cloud project subscription.",{"title":225,"path":226,"stem":227,"children":228,"page":89},"Community","/community","community",[229,249,274,293,318],{"title":230,"path":231,"stem":232,"children":233,"page":89},"Overview","/community/overview","community/1.overview",[234,239,244],{"title":235,"path":236,"stem":237,"description":238,"icon":14,"links":14},"Welcome","/community/overview/welcome","community/1.overview/1.welcome","Welcome to the Directus community!",{"title":240,"path":241,"stem":242,"description":243,"icon":14,"links":14},"Code of Conduct","/community/overview/conduct","community/1.overview/2.conduct","Our standards, responsibilities, and enforcement guidelines to create a positive community.",{"title":245,"path":246,"stem":247,"description":248,"icon":14,"links":14},"Moderation Guidelines","/community/overview/moderation","community/1.overview/3.moderation","Guidelines we give to community moderators.",{"title":250,"path":251,"stem":252,"children":253,"page":89},"Contribution","/community/contribution","community/2.contribution",[254,259,264,269],{"title":255,"path":256,"stem":257,"description":258,"icon":14,"links":14},"Translations","/community/contribution/translations","community/2.contribution/1.translations","How to contribute to translating the Data Studio.",{"title":260,"path":261,"stem":262,"description":263,"icon":14,"links":14},"Documentation","/community/contribution/documentation","community/2.contribution/2.documentation","How to contribute to the Directus documentation.",{"title":265,"path":266,"stem":267,"description":268,"icon":14,"links":14},"Feature Requests","/community/contribution/feature-requests","community/2.contribution/3.feature-requests","How to add feature requests, and our process for reviewing them.",{"title":270,"path":271,"stem":272,"description":273,"icon":14,"links":14},"Pull Requests","/community/contribution/pull-requests","community/2.contribution/4.pull-requests","Our process for contributing pull requests to Directus.",{"title":275,"path":276,"stem":277,"children":278,"page":89},"Codebase","/community/codebase","community/3.codebase",[279,283,288],{"title":275,"path":280,"stem":281,"description":282,"icon":14,"links":14},"/community/codebase/overview","community/3.codebase/1.overview","Overview of the Directus codebase for new contributors",{"title":284,"path":285,"stem":286,"description":287,"icon":14,"links":14},"Development Environment","/community/codebase/dev-environment","community/3.codebase/2.dev-environment","How to set up and run a development environment for Directus so that you can work on the platform's source code.",{"title":289,"path":290,"stem":291,"description":292,"icon":14,"links":14},"Testing","/community/codebase/testing","community/3.codebase/3.testing","How to run unit and blackbox tests in the Directus codebase.",{"title":294,"path":295,"stem":296,"children":297,"page":89},"Reporting And Support","/community/reporting-and-support","community/4.reporting-and-support",[298,303,308,313],{"title":299,"path":300,"stem":301,"description":302,"icon":14,"links":14},"Troubleshooting Steps","/community/reporting-and-support/troubleshooting-steps","community/4.reporting-and-support/1.troubleshooting-steps","If you're experiencing issues or think you have found a problem in Directus, be sure to follow these steps.",{"title":304,"path":305,"stem":306,"description":307,"icon":14,"links":14},"Bug Reporting","/community/reporting-and-support/bug-reporting","community/4.reporting-and-support/2.bug-reporting","How to report bugs in Directus.",{"title":309,"path":310,"stem":311,"description":312,"icon":14,"links":14},"Security Reporting","/community/reporting-and-support/security-reporting","community/4.reporting-and-support/3.security-reporting","How to report security issues in Directus.",{"title":314,"path":315,"stem":316,"description":317,"icon":14,"links":14},"Customer Support","/community/reporting-and-support/customer-support","community/4.reporting-and-support/4.customer-support","How to get help with Directus as a user and customer.",{"title":319,"path":320,"stem":321,"children":322,"page":89},"Programs","/community/programs","community/5.programs",[323,328],{"title":324,"path":325,"stem":326,"description":327,"icon":14,"links":14},"Guest Authors","/community/programs/guest-authors","community/5.programs/1.guest-authors","Our guest author program invites authors to join and get paid to write tutorials for the Directus community.",{"title":329,"path":330,"stem":331,"description":332,"icon":14,"links":14},"Directus Labs","/community/programs/directus-labs","community/5.programs/2.directus-labs","Directus Labs is the official organization for Directus templates, settings and experimental projects.",{"title":175,"path":334,"stem":335,"children":336,"page":89},"/configuration","configuration",[337,341,346,351,356,361,366,371,376,381,386,391,396,401,406,410,415,420,425],{"title":130,"path":338,"stem":339,"description":340,"icon":14,"links":14},"/configuration/intro","configuration/0.intro","Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",{"title":342,"path":343,"stem":344,"description":345,"icon":14,"links":14},"General","/configuration/general","configuration/1.general","Configuration for the general system, server, first admin user, and telemetry.",{"title":347,"path":348,"stem":349,"description":350,"icon":14,"links":14},"AI","/configuration/ai","configuration/ai","Configuration for AI Assistant and Model Context Protocol (MCP) features.",{"title":352,"path":353,"stem":354,"description":355,"icon":14,"links":14},"Auth & SSO","/configuration/auth-sso","configuration/auth-sso","Configuration for authentication methods, including local email/password, OAuth 2.0, OpenID, LDAP, and SAML.",{"title":357,"path":358,"stem":359,"description":360,"icon":14,"links":14},"Cache","/configuration/cache","configuration/cache","Configuration for internal and output caching.",{"title":362,"path":363,"stem":364,"description":365,"icon":14,"links":14},"Database","/configuration/database","configuration/database","Configuration for database connections.",{"title":367,"path":368,"stem":369,"description":370,"icon":14,"links":14},"Email","/configuration/email","configuration/email","Configuration for email settings and templates.",{"title":372,"path":373,"stem":374,"description":375,"icon":14,"links":14},"Extensions","/configuration/extensions","configuration/extensions","Configuration for extensions and the Directus Marketplace.",{"title":377,"path":378,"stem":379,"description":380,"icon":14,"links":14},"Files","/configuration/files","configuration/files","Configuration for storage locations, metadata, upload limits, and transformations.",{"title":382,"path":383,"stem":384,"description":385,"icon":14,"links":14},"Flows","/configuration/flows","configuration/flows","Configure environment variables, memory, and timeout for Flows.",{"title":387,"path":388,"stem":389,"description":390,"icon":14,"links":14},"Logging","/configuration/logging","configuration/logging","Configuration for general and Realtime logging.",{"title":392,"path":393,"stem":394,"description":395,"icon":14,"links":14},"Metrics","/configuration/metrics","configuration/metrics","Configuration for metrics.",{"title":397,"path":398,"stem":399,"description":400,"icon":14,"links":14},"Migrations","/configuration/migrations","configuration/migrations","Creation of custom migration files to automate database changes.",{"title":402,"path":403,"stem":404,"description":405,"icon":14,"links":14},"PM2","/configuration/pm2","configuration/pm2","Configuration for PM2, the process manager for Directus.",{"title":86,"path":407,"stem":408,"description":409,"icon":14,"links":14},"/configuration/realtime","configuration/realtime","Configuration for WebSockets and GraphQL Subscriptions.",{"title":411,"path":412,"stem":413,"description":414,"icon":14,"links":14},"Security & Limits","/configuration/security-limits","configuration/security-limits","Configuration for access tokens, cookies, CSP, hashing, CORS, rate limiting, and request limits.",{"title":416,"path":417,"stem":418,"description":419,"icon":14,"links":14},"Synchronization","/configuration/synchronization","configuration/synchronization","Configuration around synchronization and Redis.",{"title":421,"path":422,"stem":423,"description":424,"icon":14,"links":14},"Theming","/configuration/theming","configuration/theming","Configuration of the Data Studio's theming engine and appearance settings.",{"title":255,"path":426,"stem":427,"description":428,"icon":14,"links":14},"/configuration/translations","configuration/translations","Directus supports translations for both the Data Studio UI and authored content.",{"title":125,"description":14,"icon":14,"links":14,"path":430,"stem":431,"children":432,"page":89},"/getting-started","getting-started",[433,437,442,446,451,456,461,466,471,476],{"title":230,"path":434,"stem":435,"description":436,"icon":14,"links":14},"/getting-started/overview","getting-started/1.overview","Learn about the Directus Data Engine and Studio, when to use it, and how it works.",{"title":438,"path":439,"stem":440,"description":441,"icon":14,"links":14},"Accessibility","/getting-started/accessibility","getting-started/10.accessibility","We are always looking for ways to make Directus Studio more accessible. Here are some of the methods we currently support.",{"title":150,"path":443,"stem":444,"description":445,"icon":14,"links":14},"/getting-started/create-a-project","getting-started/2.create-a-project","Learn about how to create a managed Directus project or self-host with Docker.",{"title":447,"path":448,"stem":449,"description":450,"icon":14,"links":14,"label":447},"Configure a Data Model","/getting-started/data-model","getting-started/3.data-model","This guide will cover creating a collection in Directus via the Data Studio, creating fields, and configuring relationships.",{"title":452,"path":453,"stem":454,"description":455,"icon":14,"links":14},"Use the API","/getting-started/use-the-api","getting-started/4.use-the-api","Get started with Directus APIs. Learn to interact with collections, fetch, and create data.",{"title":457,"path":458,"stem":459,"description":460,"icon":14,"links":14},"Authenticate a User","/getting-started/authenticate-user","getting-started/5.authenticate-user","Get started with Directus Auth. Learn how to register, login, create users, and make authenticated requests.",{"title":462,"path":463,"stem":464,"description":465,"icon":14,"links":14},"Upload & Access Files","/getting-started/upload-files","getting-started/6.upload-files","This guide will cover importing a file via URL, requesting assets, and using transformation parameters.",{"title":467,"path":468,"stem":469,"description":470,"icon":14,"links":14},"Create an Automation","/getting-started/create-an-automation","getting-started/7.create-an-automation","Get started using flows, triggers, operations and the data chain in Directus Automate.",{"title":472,"path":473,"stem":474,"description":475,"icon":14,"links":14},"Connect to Realtime Data","/getting-started/connect-to-realtime","getting-started/8.connect-to-realtime","This guide will cover connecting to Directus via WebSockets on the web, subscribing to changes, and creating new items over the connection.",{"title":477,"path":478,"stem":479,"description":480,"icon":14,"links":14},"Resources & Links","/getting-started/resources","getting-started/9.resources","Key links across the Directus ecosystem.",{"title":482,"path":483,"stem":484,"children":485,"page":89},"Guides","/guides","guides",[486,512,595,642,686,716,741,765,780,895,908,997],{"title":487,"description":14,"icon":488,"links":14,"path":489,"stem":490,"children":491,"page":89},"Data Model","directus-explore","/guides/data-model","guides/01.data-model",[492,497,502,507],{"title":493,"path":494,"stem":495,"description":496,"icon":14,"links":14},"Collections","/guides/data-model/collections","guides/01.data-model/1.collections","Directus collections help you manage your data. Create custom collections, define fields, configure relationships, and leverage features like content versioning and access control. Learn how to create, configure, and manage collections in Directus.",{"title":498,"path":499,"stem":500,"description":501,"icon":14,"links":14},"Fields","/guides/data-model/fields","guides/01.data-model/2.fields","Directus fields let you define how your data is stored and displayed. Learn about creating fields, data types, interfaces, validations, relationships, and more. Discover how to configure fields to perfectly suit your data modeling needs in Directus.",{"title":503,"path":504,"stem":505,"description":506,"icon":14,"links":14},"Interfaces","/guides/data-model/interfaces","guides/01.data-model/3.interfaces","Manage your data effectively with Directus fields. Discover various field types, interfaces, validations, and relationships to perfectly suit your data modeling needs.",{"title":508,"path":509,"stem":510,"description":511,"icon":14,"links":14},"Relationships","/guides/data-model/relationships","guides/01.data-model/4.relationships","Leverage Directus relationships to create powerful data connections. Explore Many to One, One to Many, Many to Many, and Many to Any relationships, along with Translations for multilingual content management.",{"title":513,"description":14,"icon":514,"links":14,"path":515,"stem":516,"children":517,"page":89},"Content","directus-editor","/guides/content","guides/02.content",[518,523,528,533,538,543,548,552,574],{"title":519,"path":520,"stem":521,"description":522,"icon":14,"links":14},"Collection Explorer","/guides/content/explore","guides/02.content/1.explore","Learn to filter, layout, batch edit and more with collections in the collection explorer.",{"title":524,"path":525,"stem":526,"description":527,"icon":14,"links":14},"Item Editor","/guides/content/editor","guides/02.content/2.editor","Learn to create, duplicate, archive and perform other actions with items using Directus.",{"title":529,"path":530,"stem":531,"description":532,"icon":14,"links":14},"Layouts","/guides/content/layouts","guides/02.content/3.layouts","Learn to use layouts for viewing and interacting with items in a collection using Directus.",{"title":534,"path":535,"stem":536,"description":537,"icon":14,"links":14},"Import & Export","/guides/content/import-export","guides/02.content/4.import-export","Learn to import and export multiple items stored as files using Directus.",{"title":539,"path":540,"stem":541,"description":542,"icon":14,"links":14},"Live Preview","/guides/content/live-preview","guides/02.content/5.live-preview","Learn to set up your project for live previewing items from your application.",{"title":544,"path":545,"stem":546,"description":547,"icon":14,"links":14},"Content Versioning","/guides/content/content-versioning","guides/02.content/6.content-versioning","This guide covers the process of enabling and utilizing Content Versioning in Directus.",{"title":255,"path":549,"stem":550,"description":551,"icon":14,"links":14},"/guides/content/translations","guides/02.content/7.translations","Both content and the data studio can be translated into multiple languages.",{"title":553,"path":554,"stem":555,"children":556,"description":558,"icon":14,"links":14},"Visual Editor","/guides/content/visual-editor","guides/02.content/8.visual-editor/0.index",[557,559,564,569],{"title":553,"path":554,"stem":555,"description":558,"icon":14,"links":14},"The Directus visual editor module allows you to visually edit the content of your website directly in-place.",{"title":560,"path":561,"stem":562,"description":563,"icon":14,"links":14},"Frontend Library","/guides/content/visual-editor/frontend-library","guides/02.content/8.visual-editor/1.frontend-library","A library that allows your website to communicate with your Directus project and enables Visual Editing.",{"title":565,"path":566,"stem":567,"description":568,"icon":14,"links":14},"Studio Module","/guides/content/visual-editor/studio-module","guides/02.content/8.visual-editor/2.studio-module","Learn how to edit your website's content in place from within the Directus Studio.",{"title":570,"path":571,"stem":572,"description":573,"icon":14,"links":14},"Customization","/guides/content/visual-editor/customization","guides/02.content/8.visual-editor/3.customization","Customize the styling of your Visual Editing experience to suit your brand or website theming.",{"title":575,"path":576,"stem":577,"children":578,"description":580,"icon":14,"links":14},"Collaborative Editing","/guides/content/collaborative-editing","guides/02.content/9.collaborative-editing/0.index",[579,581,585,590],{"title":575,"path":576,"stem":577,"description":580,"icon":14,"links":14},"Directus Collaborative Editing enables real-time data synchronization and collaborative editing across collections, allowing multiple users to edit content simultaneously without conflicts.",{"title":175,"path":582,"stem":583,"description":584,"icon":14,"links":14},"/guides/content/collaborative-editing/configuration","guides/02.content/9.collaborative-editing/1.configuration","Learn how to configure Collaborative Editing in your Directus project.",{"title":586,"path":587,"stem":588,"description":589,"icon":14,"links":14},"Usage Guide","/guides/content/collaborative-editing/usage","guides/02.content/9.collaborative-editing/2.usage","Learn how to use Collaborative Editing for real-time collaboration on content in your Directus project.",{"title":591,"path":592,"stem":593,"description":594,"icon":14,"links":14},"Development & Custom Extensions","/guides/content/collaborative-editing/development","guides/02.content/9.collaborative-editing/3.development","Learn how Custom Interfaces integrate with Collaborative Editing in Directus.",{"title":74,"description":14,"icon":596,"links":14,"path":597,"stem":598,"children":599,"page":89},"directus-auth","/guides/auth","guides/03.auth",[600,605,610,615,620,625,630],{"title":601,"path":602,"stem":603,"description":604,"icon":14,"links":14},"Access Tokens","/guides/auth/tokens-cookies","guides/03.auth/1.tokens-cookies","Learn how to authenticate requests & explore standard, session, and static token types.",{"title":606,"path":607,"stem":608,"description":609,"icon":14,"links":14},"Access Control","/guides/auth/access-control","guides/03.auth/2.access-control","Manage user and role permissions and policies for interacting with data in Directus.",{"title":611,"path":612,"stem":613,"description":614,"icon":14,"links":14},"Creating Users","/guides/auth/creating-users","guides/03.auth/3.creating-users","Learn about creating users in directus, including API creation, inviting users, and seamless invites.",{"title":616,"path":617,"stem":618,"description":619,"icon":14,"links":14},"Email Login","/guides/auth/email-login","guides/03.auth/4.email-login","Learn about user registration, login with standard/session tokens, refresh, logout, and resetting passwords.",{"title":621,"path":622,"stem":623,"description":624,"icon":14,"links":14},"Two-Factor Auth","/guides/auth/2fa","guides/03.auth/5.2fa","Secure your logins with one-time codes! Learn how to generate secrets, enable/disable 2FA.",{"title":626,"path":627,"stem":628,"description":629,"icon":14,"links":14},"Accountability","/guides/auth/accountability","guides/03.auth/6.accountability","Learn to audit user activity and enforce accountability using the activity feed.",{"title":631,"path":632,"stem":633,"children":634,"description":636,"icon":14,"links":14},"Single Sign-On","/guides/auth/sso","guides/03.auth/7.sso/1.index",[635,637],{"title":631,"path":632,"stem":633,"description":636,"icon":14,"links":14},"Single Sign-On is a mechanism which allows to use external providers to login into systems.",{"title":638,"path":639,"stem":640,"description":641,"icon":14,"links":14},"Seamless SSO","/guides/auth/sso/seamless","guides/03.auth/7.sso/2.seamless","Seamless SSO is a setup to allow logging in without the user ever seeing Directus' login page.",{"title":643,"description":14,"icon":644,"links":14,"path":645,"stem":646,"children":647,"page":89},"Connect","directus-connect","/guides/connect","guides/04.connect",[648,652,657,662,667,672,677,682],{"title":16,"path":649,"stem":650,"description":651,"icon":14,"links":14},"/guides/connect/authentication","guides/04.connect/1.authentication","Discover how to authenticate Directus Connect requests using authorization headers, session cookies, or query parameters.",{"title":653,"path":654,"stem":655,"description":656,"icon":14,"links":14},"Filter Rules","/guides/connect/filter-rules","guides/04.connect/2.filter-rules","Learn about filter rules in Directus - available operators, filter syntax, relational fields, dynamic variables, logical operators, and functions parameters. Understand how to build complex filters for permissions, validations, and automations.",{"title":658,"path":659,"stem":660,"description":661,"icon":14,"links":14},"Query Parameters","/guides/connect/query-parameters","guides/04.connect/3.query-parameters","Learn about Directus query parameters - fields, filter, search, sort, limit, offset, page, aggregate, groupBy, deep, alias, and export. Understand how to customize your API requests and retrieve specific data from your collections.",{"title":663,"path":664,"stem":665,"description":666,"icon":14,"links":14},"Relational Data","/guides/connect/relations","guides/04.connect/4.relations","Directus enables you to manage and interact with relational data. This section will guide you through the different types of relationships and how to work with them.",{"title":668,"path":669,"stem":670,"description":671,"icon":14,"links":14},"Error Codes","/guides/connect/errors","guides/04.connect/5.errors","Learn about Directus error codes - understand what each code means, from validation failures to rate limits exceeded. Troubleshoot issues with your API requests and resolve errors efficiently.",{"title":673,"path":674,"stem":675,"description":676,"icon":14,"links":14},"Directus SDK","/guides/connect/sdk","guides/04.connect/6.sdk","A JavaScript and TypeScript library that simplifies working with Directus.",{"title":678,"path":679,"stem":680,"description":681,"icon":14,"links":14},"JSON Queries","/guides/connect/json-queries","guides/04.connect/7.json-queries","Quickstart for extracting and filtering values inside JSON fields with the json() function and _json filter operator.",{"title":678,"path":683,"stem":684,"description":685,"icon":14,"links":14},"/guides/connect/json-queries-reference","guides/04.connect/8.json-queries-reference","Extract and filter values in JSON fields using the json(field, path) function and _json filter operator, with path notation, relational support, GraphQL, and TypeScript SDK.",{"title":377,"description":14,"icon":687,"links":14,"path":688,"stem":689,"children":690,"page":89},"directus-files","/guides/files","guides/05.files",[691,696,701,706,711],{"title":692,"path":693,"stem":694,"description":695,"icon":14,"links":14},"Upload Files","/guides/files/upload","guides/05.files/1.upload","Learn to upload files to Directus via both the data studio or API.",{"title":697,"path":698,"stem":699,"description":700,"icon":14,"links":14},"Download Files","/guides/files/download","guides/05.files/2.download","Learn to download content from the File Library",{"title":702,"path":703,"stem":704,"description":705,"icon":14,"links":14},"Manage Files","/guides/files/manage","guides/05.files/3.manage","Learn to view, modify, edit and set files' focal points.",{"title":707,"path":708,"stem":709,"description":710,"icon":14,"links":14},"Access Files","/guides/files/access","guides/05.files/4.access","Learn how to access uploaded files, authenticate, provide optional filenames and directly download them.",{"title":712,"path":713,"stem":714,"description":715,"icon":14,"links":14},"Transform Files","/guides/files/transform","guides/05.files/5.transform","Learn how to transform files and set custom presets for these transformations.",{"title":717,"description":14,"icon":718,"links":14,"path":719,"stem":720,"children":721,"page":89},"Automate","directus-automate","/guides/automate","guides/06.automate",[722,726,731,736],{"title":382,"path":723,"stem":724,"description":725,"icon":14,"links":14},"/guides/automate/flows","guides/06.automate/1.flows","Flows enable custom, event-driven data processing and task automation within Directus.",{"title":727,"path":728,"stem":729,"description":730,"icon":14,"links":14},"Data Chain","/guides/automate/data-chain","guides/06.automate/2.data-chain","Data chains are created by each flow and hold information that can be accessed within different operations.",{"title":732,"path":733,"stem":734,"description":735,"icon":14,"links":14},"Triggers","/guides/automate/triggers","guides/06.automate/3.triggers","Triggers define the action or events that start flows.",{"title":737,"path":738,"stem":739,"description":740,"icon":14,"links":14},"Operations","/guides/automate/operations","guides/06.automate/4.operations","Operations are individual customizable actions in a flow.",{"title":86,"description":14,"icon":742,"links":14,"path":743,"stem":744,"children":745,"page":89},"directus-realtime","/guides/realtime","guides/07.realtime",[746,750,755,760],{"title":16,"path":747,"stem":748,"description":749,"icon":14,"links":14},"/guides/realtime/authentication","guides/07.realtime/1.authentication","Learn to implement the three authentication modes.",{"title":751,"path":752,"stem":753,"description":754,"icon":14,"links":14},"Subscriptions","/guides/realtime/subscriptions","guides/07.realtime/2.subscriptions","Learn to manage realtime subscriptions with both websockets and GraphQL.",{"title":756,"path":757,"stem":758,"description":759,"icon":14,"links":14},"Actions","/guides/realtime/actions","guides/07.realtime/3.actions","Learn to execute CRUD actions via websockets.",{"title":761,"path":762,"stem":763,"description":764,"icon":14,"links":14},"Custom WebSocket Handlers","/guides/realtime/custom-handlers","guides/07.realtime/4.custom-handlers","Build custom WebSocket message handlers, push messages to connected clients, and react to WebSocket events using hook extensions.",{"title":766,"description":14,"icon":767,"links":14,"path":768,"stem":769,"children":770,"page":89},"Insights","directus-insights","/guides/insights","guides/08.insights",[771,775],{"title":230,"path":772,"stem":773,"description":774,"icon":14,"links":14},"/guides/insights/overview","guides/08.insights/1.overview","Insights is a module in Directus that allows rapid, no-code build-out of analytics dashboards.",{"title":776,"path":777,"stem":778,"description":779,"icon":14,"links":14},"Panels","/guides/insights/panels","guides/08.insights/2.panels","Panels are the building-blocks you can add onto insights dashboards to create, save and display data analytics.",{"title":372,"description":14,"icon":781,"links":14,"path":782,"stem":783,"children":784,"page":89},"directus-marketplace","/guides/extensions","guides/09.extensions",[785,789,794,826,873,878,890],{"title":230,"path":786,"stem":787,"description":788,"icon":14,"links":14},"/guides/extensions/overview","guides/09.extensions/0.overview","Extensions are used to extend the functionality of Directus.",{"title":790,"path":791,"stem":792,"description":793,"icon":14,"links":14},"Quickstart","/guides/extensions/quickstart","guides/09.extensions/1.quickstart","This guide will cover how to get started with developing an extension for Directus.",{"title":795,"path":796,"stem":797,"children":798,"description":800,"icon":14,"links":14},"API Extensions","/guides/extensions/api-extensions","guides/09.extensions/2.api-extensions/0.index",[799,801,806,811,816,821],{"title":795,"path":796,"stem":797,"description":800,"icon":14,"links":14},"API Extensions extend the functionality of the API.",{"title":802,"path":803,"stem":804,"description":805,"icon":14,"links":14},"Event Hooks","/guides/extensions/api-extensions/hooks","guides/09.extensions/2.api-extensions/1.hooks","Hooks allow running code when during the Directus lifecycle or database events.",{"title":807,"path":808,"stem":809,"description":810,"icon":14,"links":14},"API Endpoints","/guides/extensions/api-extensions/endpoints","guides/09.extensions/2.api-extensions/2.endpoints","Endpoints allow you to register new API routes in your Directus project.",{"title":812,"path":813,"stem":814,"description":815,"icon":14,"links":14},"Flow Operations","/guides/extensions/api-extensions/operations","guides/09.extensions/2.api-extensions/3.operations","Operations are single steps in a Flow - the no-code automation tool part of Directus Automate.",{"title":817,"path":818,"stem":819,"description":820,"icon":14,"links":14},"Services","/guides/extensions/api-extensions/services","guides/09.extensions/2.api-extensions/4.services","When building extensions, you may use internal Directus services directly.",{"title":822,"path":823,"stem":824,"description":825,"icon":14,"links":14},"Sandbox","/guides/extensions/api-extensions/sandbox","guides/09.extensions/2.api-extensions/5.sandbox","Sandboxed Extensions run in an isolated environment and must request permission scopes.",{"title":827,"path":828,"stem":829,"children":830,"description":832,"icon":14,"links":14},"App Extensions","/guides/extensions/app-extensions","guides/09.extensions/3.app-extensions/0.index",[831,833,838,843,848,853,858,863,868],{"title":827,"path":828,"stem":829,"description":832,"icon":14,"links":14},"App Extensions extend the functionality of the Data Studio.",{"title":834,"path":835,"stem":836,"description":837,"icon":14,"links":14},"Editor Interfaces","/guides/extensions/app-extensions/interfaces","guides/09.extensions/3.app-extensions/1.interfaces","Interfaces are form inputs used primarily inside of the Directus Editor.",{"title":839,"path":840,"stem":841,"description":842,"icon":14,"links":14},"Inline Displays","/guides/extensions/app-extensions/displays","guides/09.extensions/3.app-extensions/2.displays","Displays are used to display a single value throughout the Data Studio.",{"title":844,"path":845,"stem":846,"description":847,"icon":14,"links":14},"Explore Layouts","/guides/extensions/app-extensions/layouts","guides/09.extensions/3.app-extensions/3.layouts","Layouts are used to display a list of items in Explore pages in different ways.",{"title":849,"path":850,"stem":851,"description":852,"icon":14,"links":14},"Dashboard Panels","/guides/extensions/app-extensions/panels","guides/09.extensions/3.app-extensions/4.panels","Panels are customizable components within Directus Insights dashboards.",{"title":854,"path":855,"stem":856,"description":857,"icon":14,"links":14},"Custom Modules","/guides/extensions/app-extensions/modules","guides/09.extensions/3.app-extensions/5.modules","Modules are top-level areas of the Data Studio, navigated to from the left-hand module bar.",{"title":859,"path":860,"stem":861,"description":862,"icon":14,"links":14},"Custom Themes","/guides/extensions/app-extensions/themes","guides/09.extensions/3.app-extensions/6.themes","Themes are used to style elements of the Data Studio including colors and fonts.",{"title":864,"path":865,"stem":866,"description":867,"icon":14,"links":14},"UI Library","/guides/extensions/app-extensions/ui-library","guides/09.extensions/3.app-extensions/7.ui-library","Directus offers globally-registered UI components for building extensions.",{"title":869,"path":870,"stem":871,"description":872,"icon":14,"links":14},"Composables","/guides/extensions/app-extensions/composables","guides/09.extensions/3.app-extensions/8.composables","Vue composables for working with Directus services when building extensions.",{"title":874,"path":875,"stem":876,"description":877,"icon":14,"links":14},"Bundling Extensions","/guides/extensions/bundles","guides/09.extensions/4.bundles","Bundles are a way to group extensions together as a single distributable package.",{"title":879,"path":880,"stem":881,"children":882,"description":884,"icon":14,"links":14},"Marketplace Beta","/guides/extensions/marketplace","guides/09.extensions/5.marketplace/0.index",[883,885],{"title":879,"path":880,"stem":881,"description":884,"icon":14,"links":14},"The Directus Marketplace provides a way for users to install extensions in their projects directly the Data Studio.",{"title":886,"path":887,"stem":888,"description":889,"icon":14,"links":14},"Publishing Extensions","/guides/extensions/marketplace/publishing","guides/09.extensions/5.marketplace/1.publishing","Publish extensions to the Directus Marketplace via npm, including required metadata, best practices, and author profile setup.",{"title":891,"path":892,"stem":893,"description":894,"icon":14,"links":14},"CLI","/guides/extensions/cli","guides/09.extensions/6.cli","Using the create-directus-extension to build, validate and manage extensions.",{"title":896,"path":897,"stem":898,"children":899,"description":14,"icon":907,"links":14},"Deployments","/guides/deployments","guides/10.deployments/0.index",[900,902],{"title":230,"path":897,"stem":898,"description":901,"icon":14,"links":14},"Trigger, monitor, and manage frontend deployments directly from Directus.",{"title":903,"path":904,"stem":905,"description":906,"icon":14,"links":14},"Security","/guides/deployments/security","guides/10.deployments/1.security","Access control, permissions, and credential protection for the Deployment module.","directus-deployments",{"title":347,"path":909,"stem":910,"children":911,"description":14,"icon":996,"links":14},"/guides/ai","guides/11.ai/0.index",[912,915,946],{"title":913,"path":909,"stem":910,"description":914,"icon":14,"links":14},"AI + Directus","Use AI to interact with Directus - either through the built-in AI Assistant or by connecting external AI tools via MCP.",{"title":916,"path":917,"stem":918,"children":919,"description":14,"icon":14,"links":14},"AI Assistant","/guides/ai/assistant","guides/11.ai/1.assistant/0.index",[920,922,927,932,937,942],{"title":230,"path":917,"stem":918,"description":921,"icon":14,"links":14},"Chat with an AI assistant directly inside Directus. Create content, manage your schema, trigger automations, and explore your data through natural conversation.",{"title":923,"path":924,"stem":925,"description":926,"icon":14,"links":14},"Setup","/guides/ai/assistant/setup","guides/11.ai/1.assistant/1.setup","Configure AI Assistant by adding your AI provider API keys and customizing assistant behavior.",{"title":928,"path":929,"stem":930,"description":931,"icon":14,"links":14},"Usage","/guides/ai/assistant/usage","guides/11.ai/1.assistant/2.usage","Learn how to use AI Assistant to interact with your Directus instance through natural conversation.",{"title":933,"path":934,"stem":935,"description":936,"icon":14,"links":14},"Tools","/guides/ai/assistant/tools","guides/11.ai/1.assistant/3.tools","Reference of all tools available to AI Assistant for interacting with your Directus instance.",{"title":938,"path":939,"stem":940,"description":941,"icon":14,"links":14},"Best Practices","/guides/ai/assistant/tips","guides/11.ai/1.assistant/4.tips","Get the most out of AI Assistant with practical tips, example prompts, and common pitfalls to avoid.",{"title":903,"path":943,"stem":944,"description":945,"icon":14,"links":14},"/guides/ai/assistant/security","guides/11.ai/1.assistant/5.security","Security considerations for using AI Assistant safely with your Directus data.",{"title":947,"path":948,"stem":949,"children":950,"description":14,"icon":14,"links":14},"MCP Server","/guides/ai/mcp","guides/11.ai/2.mcp/0.index",[951,953,958,963,967,972,977,981],{"title":230,"path":948,"stem":949,"description":952,"icon":14,"links":14},"Connect AI assistants directly to your Directus instance. Let Claude, ChatGPT, and other AI tools manage your content without manual copy-pasting.",{"title":954,"path":955,"stem":956,"description":957,"icon":14,"links":14},"Installation","/guides/ai/mcp/installation","guides/11.ai/2.mcp/1.installation","Set up the Directus MCP server and connect your AI tools in under 5 minutes.",{"title":959,"path":960,"stem":961,"description":962,"icon":14,"links":14},"Use Cases","/guides/ai/mcp/use-cases","guides/11.ai/2.mcp/2.use-cases","Real examples of how to use AI with your Directus content to save time and reduce repetitive work.",{"title":933,"path":964,"stem":965,"description":966,"icon":14,"links":14},"/guides/ai/mcp/tools","guides/11.ai/2.mcp/3.tools","Learn about the tools available in the Directus remote MCP server and how they enable AI-powered content management.",{"title":968,"path":969,"stem":970,"description":971,"icon":14,"links":14},"Prompts","/guides/ai/mcp/prompts","guides/11.ai/2.mcp/4.prompts","Learn how to configure and use stored prompts with the Directus MCP Server.",{"title":973,"path":974,"stem":975,"description":976,"icon":14,"links":14},"Troubleshooting","/guides/ai/mcp/troubleshooting","guides/11.ai/2.mcp/5.troubleshooting","Common issues and solutions when setting up and using the Directus MCP server.",{"title":903,"path":978,"stem":979,"description":980,"icon":14,"links":14},"/guides/ai/mcp/security","guides/11.ai/2.mcp/6.security","Practical security guidelines for using the Directus MCP server safely and protecting your data.",{"title":982,"path":983,"stem":984,"children":985,"description":14,"icon":14,"links":14},"Local MCP","/guides/ai/mcp/local-mcp","guides/11.ai/2.mcp/7.local-mcp/0.index",[986,988,992],{"title":954,"path":983,"stem":984,"description":987,"icon":14,"links":14},"The Directus Content MCP Server allows you to interact with your Directus data through AI tools using the Model Context Protocol.",{"title":933,"path":989,"stem":990,"description":991,"icon":14,"links":14},"/guides/ai/mcp/local-mcp/tools","guides/11.ai/2.mcp/7.local-mcp/1.tools","Learn about the tools available in the local Directus Content MCP Server and how to configure them.",{"title":968,"path":993,"stem":994,"description":995,"icon":14,"links":14},"/guides/ai/mcp/local-mcp/prompts","guides/11.ai/2.mcp/7.local-mcp/2.prompts","Configure stored prompts with the local MCP server using environment variables and manual collection setup.","directus-ai",{"title":998,"description":14,"icon":999,"links":14,"path":1000,"stem":1001,"children":1002},"Integrations","directus-integrations","/guides/integrations","guides/12.integrations/index",[1003,1005,1012,1033,1055,1074,1085],{"title":998,"path":1000,"stem":1001,"description":1004,"icon":14,"links":14},"Connect Directus with third-party tools and services to extend functionality and automate workflows.",{"title":1006,"path":1007,"stem":1008,"children":1009,"description":14,"icon":14,"links":14},"Framer","/guides/integrations/framer","guides/11.integrations/6.framer/0.index",[1010],{"title":1006,"path":1007,"stem":1008,"description":1011,"icon":14,"links":14},"Connect your Directus collections to Framer's CMS to sync content in both directions using the Directus Framer plugin.",{"title":1013,"path":1014,"stem":1015,"children":1016,"description":14,"icon":14,"links":14},"n8n","/guides/integrations/n8n","guides/12.integrations/1.n8n/0.index",[1017,1020,1024,1029],{"title":1018,"path":1014,"stem":1015,"description":1019,"icon":14,"links":14},"Integration","Connect Directus with n8n to automate workflows, sync data, and integrate your CMS with other services using the Directus community node.",{"title":756,"path":1021,"stem":1022,"description":1023,"icon":14,"links":14},"/guides/integrations/n8n/directus-n8n-actions","guides/12.integrations/1.n8n/directus-n8n-actions","Complete guide for using Directus actions in n8n workflows, including working with items, users, and files.",{"title":1025,"path":1026,"stem":1027,"description":1028,"icon":14,"links":14},"Advanced","/guides/integrations/n8n/directus-n8n-advanced","guides/12.integrations/1.n8n/directus-n8n-advanced","Advanced guide for using Directus raw CRUD operations in n8n, including raw JSON operations, complex filters, relational queries, and query parameters.",{"title":732,"path":1030,"stem":1031,"description":1032,"icon":14,"links":14},"/guides/integrations/n8n/directus-n8n-triggers","guides/12.integrations/1.n8n/directus-n8n-triggers","Complete guide for using Directus triggers in n8n workflows to automate workflows when events happen in Directus.",{"title":1034,"path":1035,"stem":1036,"children":1037,"description":14,"icon":14,"links":14},"Clay","/guides/integrations/clay","guides/12.integrations/2.clay/0.index",[1038,1040,1045,1050],{"title":1018,"path":1035,"stem":1036,"description":1039,"icon":14,"links":14},"Connect Directus with Clay to automate data enrichment and sync content between platforms using webhooks and HTTP API templates.",{"title":1041,"path":1042,"stem":1043,"description":1044,"icon":14,"links":14},"Data Operations","/guides/integrations/clay/directus-clay-data-operations","guides/12.integrations/2.clay/directus-clay-data-operations","Advanced techniques for working with Directus data in Clay, including filters, pagination, common use cases, and best practices.",{"title":1046,"path":1047,"stem":1048,"description":1049,"icon":14,"links":14},"Templates","/guides/integrations/clay/use-clay-templates-with-directus","guides/12.integrations/2.clay/use-clay-templates-with-directus","Learn how to use Clay's pre-built HTTP API templates to connect with Directus for data enrichment and synchronization.",{"title":1051,"path":1052,"stem":1053,"description":1054,"icon":14,"links":14},"Webhooks","/guides/integrations/clay/use-directus-webhooks-with-clay","guides/12.integrations/2.clay/use-directus-webhooks-with-clay","Learn how to set up Directus Flows to automatically send data to Clay webhooks for real-time data synchronization.",{"title":1056,"path":1057,"stem":1058,"children":1059,"description":14,"icon":14,"links":14},"Zapier","/guides/integrations/zapier","guides/12.integrations/3.zapier/0.index",[1060,1062,1066,1070],{"title":1018,"path":1057,"stem":1058,"description":1061,"icon":14,"links":14},"Connect Directus with Zapier to automate workflows, sync data, and integrate your CMS with thousands of other apps using the Directus Zapier integration.",{"title":756,"path":1063,"stem":1064,"description":1065,"icon":14,"links":14},"/guides/integrations/zapier/actions","guides/12.integrations/3.zapier/actions","Complete guide for using Directus actions in Zapier workflows, including working with items, users, and files.",{"title":1025,"path":1067,"stem":1068,"description":1069,"icon":14,"links":14},"/guides/integrations/zapier/advanced","guides/12.integrations/3.zapier/advanced","Advanced guide for using Directus API features in Zapier, including raw request actions, advanced filtering, and custom API calls.",{"title":732,"path":1071,"stem":1072,"description":1073,"icon":14,"links":14},"/guides/integrations/zapier/triggers","guides/12.integrations/3.zapier/triggers","Complete guide for using Directus triggers in Zapier workflows to automatically start Zaps when events happen in Directus.",{"title":1075,"path":1076,"stem":1077,"children":1078,"description":14,"icon":14,"links":14},"Vercel","/guides/integrations/vercel","guides/12.integrations/4.vercel/0.index",[1079,1081],{"title":1075,"path":1076,"stem":1077,"description":1080,"icon":14,"links":14},"Connect Directus with Vercel to trigger deployments, monitor build status, and manage your frontend projects directly from your Directus instance.",{"title":896,"path":1082,"stem":1083,"description":1084,"icon":14,"links":14},"/guides/integrations/vercel/deployments","guides/12.integrations/4.vercel/deployments","Complete guide for triggering deployments, monitoring build status, and viewing logs for your Vercel projects from Directus.",{"title":1086,"path":1087,"stem":1088,"children":1089,"description":14,"icon":14,"links":14},"Netlify","/guides/integrations/netlify","guides/12.integrations/5.netlify/0.index",[1090,1092],{"title":1086,"path":1087,"stem":1088,"description":1091,"icon":14,"links":14},"Integrate Directus with Netlify to deploy your sites, track build progress, and manage frontend projects from within your Directus instance.",{"title":896,"path":1093,"stem":1094,"description":1095,"icon":14,"links":14},"/guides/integrations/netlify/deployments","guides/12.integrations/5.netlify/deployments","Full guide for triggering builds, tracking deployment progress, and viewing logs for your Netlify sites from Directus.",{"title":230,"path":1097,"stem":1098,"children":1099,"description":1101,"icon":14,"links":14},"/releases","releases/1.index",[1100,1102,1107],{"title":230,"path":1097,"stem":1098,"description":1101,"icon":14,"links":14},"Releases are how we roll out new features, updates, and fixes to Directus.",{"title":1103,"path":1104,"stem":1105,"description":1106,"icon":14,"links":14},"Changelog","/releases/changelog","releases/2.changelog","A monthly summary of what's new from the Directus team.",{"title":1108,"path":1109,"stem":1110,"children":1111,"description":1113,"icon":14,"links":14},"Breaking Changes","/releases/breaking-changes","releases/3.breaking-changes/0.index",[1112,1114,1118],{"title":1108,"path":1109,"stem":1110,"description":1113,"icon":14,"links":14},"Breaking changes may require action on your part before upgrading.",{"title":1115,"path":1116,"stem":1117,"description":1113,"icon":14,"links":14},"Version 10","/releases/breaking-changes/version-10","releases/3.breaking-changes/1.version-10",{"title":1119,"path":1120,"stem":1121,"description":1113,"icon":14,"links":14},"Version 11","/releases/breaking-changes/version-11","releases/3.breaking-changes/2.version-11",{"title":1123,"description":14,"icon":14,"links":14,"path":1124,"stem":1125,"children":1126,"page":89},"Self-Hosting","/self-hosting","self-hosting",[1127,1131,1136,1141,1146],{"title":230,"path":1128,"stem":1129,"description":1130,"icon":14,"links":14},"/self-hosting/overview","self-hosting/1.overview","Self-hosting Directus means running the Directus software on your own infrastructure.",{"title":1132,"path":1133,"stem":1134,"description":1135,"icon":14,"links":14},"Requirements","/self-hosting/requirements","self-hosting/2.requirements","This page outlines the requirements for self-hosting Directus.",{"title":1137,"path":1138,"stem":1139,"description":1140,"icon":14,"links":14},"Deployment","/self-hosting/deploying","self-hosting/3.deploying","This section covers the deployment process of Directus, including environment variables, versioning, persistence, and initial admin user setup.",{"title":1142,"path":1143,"stem":1144,"description":1145,"icon":14,"links":14},"Upgrading","/self-hosting/upgrading","self-hosting/4.upgrading","Learn how to upgrade Directus to the latest version.",{"title":1147,"path":1148,"stem":1149,"description":1150,"icon":14,"links":14},"Including Extensions","/self-hosting/including-extensions","self-hosting/5.including-extensions","Learn how to include extensions in your self-hosted Directus project.",{"title":1152,"path":1153,"stem":1154,"children":1155},"Tutorials","/tutorials","tutorials",[1156,1159,1379,1539,1585,1611,1728,1765],{"title":1152,"path":1153,"stem":1157,"description":1158,"icon":14,"links":14},"tutorials/index","This is a collection of step-by-step guides and practical examples to help you get the most out of our platform. Whether you're a beginner or an experienced user, our tutorials are designed to provide you with the knowledge and skills you need to succeed.",{"title":125,"path":1160,"stem":1161,"children":1162,"description":24,"icon":14,"links":14},"/tutorials/getting-started","tutorials/1.getting-started/index",[1163,1164,1169,1174,1179,1184,1189,1194,1199,1204,1209,1214,1219,1224,1229,1234,1239,1244,1249,1254,1259,1264,1269,1274,1279,1284,1289,1294,1299,1304,1309,1314,1319,1324,1329,1334,1339,1344,1349,1354,1359,1364,1369,1374],{"title":125,"path":1160,"stem":1161,"description":24,"icon":14,"links":14},{"title":1165,"path":1166,"stem":1167,"description":1168,"icon":14,"links":14},"Create Reusable Blocks with Many-to-Any Relationships","/tutorials/getting-started/create-reusable-blocks-with-many-to-any-relationships","tutorials/1.getting-started/create-reusable-blocks-with-many-to-any-relationships","Learn how to data model for multiple, repeating sections of content.",{"title":1170,"path":1171,"stem":1172,"description":1173,"icon":14,"links":14},"Fetch Data from Directus in Android with Kotlin","/tutorials/getting-started/fetch-data-from-directus-in-android-with-kotlin","tutorials/1.getting-started/fetch-data-from-directus-in-android-with-kotlin","Learn how to integrate Directus in your Android app with Kotlin.",{"title":1175,"path":1176,"stem":1177,"description":1178,"icon":14,"links":14},"Fetch Data from Directus in iOS with Swift","/tutorials/getting-started/fetch-data-from-directus-in-ios-with-swift","tutorials/1.getting-started/fetch-data-from-directus-in-ios-with-swift","Learn how to integrate Directus in your iOS app with Swift.",{"title":1180,"path":1181,"stem":1182,"description":1183,"icon":14,"links":14},"Fetch Data from Directus with Angular","/tutorials/getting-started/fetch-data-from-directus-with-angular","tutorials/1.getting-started/fetch-data-from-directus-with-angular","Learn how to integrate Directus in your Angular web application.",{"title":1185,"path":1186,"stem":1187,"description":1188,"icon":14,"links":14},"Fetch Data from Directus with Astro","/tutorials/getting-started/fetch-data-from-directus-with-astro","tutorials/1.getting-started/fetch-data-from-directus-with-astro","Learn how to integrate Directus in your Astro web application.",{"title":1190,"path":1191,"stem":1192,"description":1193,"icon":14,"links":14},"Fetch Data from Directus with Django","/tutorials/getting-started/fetch-data-from-directus-with-django","tutorials/1.getting-started/fetch-data-from-directus-with-django","Learn how to integrate Directus in your Django web application.",{"title":1195,"path":1196,"stem":1197,"description":1198,"icon":14,"links":14},"Fetch Data from Directus with Eleventy 3","/tutorials/getting-started/fetch-data-from-directus-with-eleventy-3","tutorials/1.getting-started/fetch-data-from-directus-with-eleventy-3","Learn how to integrate Directus in your 11ty web application.",{"title":1200,"path":1201,"stem":1202,"description":1203,"icon":14,"links":14},"Fetch Data from Directus with Flask","/tutorials/getting-started/fetch-data-from-directus-with-flask","tutorials/1.getting-started/fetch-data-from-directus-with-flask","Learn how to integrate Directus in your Flask web application.",{"title":1205,"path":1206,"stem":1207,"description":1208,"icon":14,"links":14},"Fetch Data from Directus with Flutter","/tutorials/getting-started/fetch-data-from-directus-with-flutter","tutorials/1.getting-started/fetch-data-from-directus-with-flutter","Learn how to integrate Directus in your Flutter app with Dart.",{"title":1210,"path":1211,"stem":1212,"description":1213,"icon":14,"links":14},"Fetch Data from Directus with Laravel","/tutorials/getting-started/fetch-data-from-directus-with-laravel","tutorials/1.getting-started/fetch-data-from-directus-with-laravel","Learn how to integrate Directus in your Laravel web application.",{"title":1215,"path":1216,"stem":1217,"description":1218,"icon":14,"links":14},"Fetch Data from Directus with Next.js","/tutorials/getting-started/fetch-data-from-directus-with-nextjs","tutorials/1.getting-started/fetch-data-from-directus-with-nextjs","Learn how to integrate Directus in your Next.js web application.",{"title":1220,"path":1221,"stem":1222,"description":1223,"icon":14,"links":14},"Fetch Data from Directus with Nuxt","/tutorials/getting-started/fetch-data-from-directus-with-nuxt","tutorials/1.getting-started/fetch-data-from-directus-with-nuxt","Learn how to integrate Directus in your Nuxt web application.",{"title":1225,"path":1226,"stem":1227,"description":1228,"icon":14,"links":14},"Fetch Data from Directus with SolidStart","/tutorials/getting-started/fetch-data-from-directus-with-solidstart","tutorials/1.getting-started/fetch-data-from-directus-with-solidstart","Learn how to integrate Directus in your SolidStart web application.",{"title":1230,"path":1231,"stem":1232,"description":1233,"icon":14,"links":14},"Fetch Data from Directus with Spring Boot","/tutorials/getting-started/fetch-data-from-directus-with-spring-boot","tutorials/1.getting-started/fetch-data-from-directus-with-spring-boot","Learn how to integrate Directus in your Spring Boot web application.",{"title":1235,"path":1236,"stem":1237,"description":1238,"icon":14,"links":14},"Fetch Data from Directus with SvelteKit","/tutorials/getting-started/fetch-data-from-directus-with-sveltekit","tutorials/1.getting-started/fetch-data-from-directus-with-sveltekit","Learn how to integrate Directus in your SvelteKit web application.",{"title":1240,"path":1241,"stem":1242,"description":1243,"icon":14,"links":14},"Implement Directus Auth with iOS","/tutorials/getting-started/implement-directus-auth-with-ios","tutorials/1.getting-started/implement-directus-auth-with-ios","Learn how to register, login, and protect content in your iOS app.",{"title":1245,"path":1246,"stem":1247,"description":1248,"icon":14,"links":14},"Implement Multilingual Content with Directus and SvelteKit","/tutorials/getting-started/implement-multilingual-content-with-directus-and-svelte-kit","tutorials/1.getting-started/implement-multilingual-content-with-directus-and-svelte-kit","Learn how to handle internationalization in your SvelteKit application.",{"title":1250,"path":1251,"stem":1252,"description":1253,"icon":14,"links":14},"Implementing Live Preview in Astro","/tutorials/getting-started/implementing-live-preview-in-astro","tutorials/1.getting-started/implementing-live-preview-in-astro","Learn how to setup Directus live preview with Astro.",{"title":1255,"path":1256,"stem":1257,"description":1258,"icon":14,"links":14},"Implementing Live Preview in Next.js","/tutorials/getting-started/implementing-live-preview-in-next-js","tutorials/1.getting-started/implementing-live-preview-in-next-js","Learn how to setup Directus live preview with Next.js.",{"title":1260,"path":1261,"stem":1262,"description":1263,"icon":14,"links":14},"Implementing Live Preview in Nuxt","/tutorials/getting-started/implementing-live-preview-in-nuxt","tutorials/1.getting-started/implementing-live-preview-in-nuxt","Learn how to setup Directus live preview with Nuxt.",{"title":1265,"path":1266,"stem":1267,"description":1268,"icon":14,"links":14},"Implementing Live Preview in React","/tutorials/getting-started/implementing-live-preview-in-react","tutorials/1.getting-started/implementing-live-preview-in-react","Learn how to setup Directus live preview with React.",{"title":1270,"path":1271,"stem":1272,"description":1273,"icon":14,"links":14},"Implementing Live Preview in SvelteKit","/tutorials/getting-started/implementing-live-preview-in-sveltekit","tutorials/1.getting-started/implementing-live-preview-in-sveltekit","Learn how to setup Directus live preview with SvelteKit.",{"title":1275,"path":1276,"stem":1277,"description":1278,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Astro","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-astro","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-astro","Learn how to access multilingual Directus content using Astro.",{"title":1280,"path":1281,"stem":1282,"description":1283,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Next.js","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-next","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-next","Learn how to access multilingual Directus content using Next.js.",{"title":1285,"path":1286,"stem":1287,"description":1288,"icon":14,"links":14},"Implementing Multilingual Content using Directus and Nuxt","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-nuxt","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-nuxt","Learn how to access multilingual Directus content using Nuxt.",{"title":1290,"path":1291,"stem":1292,"description":1293,"icon":14,"links":14},"Implementing Multilingual Content using Directus and SvelteKit","/tutorials/getting-started/implementing-multilingual-content-using-directus-and-sveltekit","tutorials/1.getting-started/implementing-multilingual-content-using-directus-and-sveltekit","Learn how to access multilingual Directus content using SvelteKit.",{"title":1295,"path":1296,"stem":1297,"description":1298,"icon":14,"links":14},"Integrating the Directus Visual Editor with Next.js","/tutorials/getting-started/integrating-the-directus-visual-editor-with-nextjs","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-nextjs","Learn how to integrate the Directus Visual Editor with Next.js.",{"title":1300,"path":1301,"stem":1302,"description":1303,"icon":14,"links":14},"Integrating the Directus Visual Editor with Nuxt","/tutorials/getting-started/integrating-the-directus-visual-editor-with-nuxt","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-nuxt","Learn how to integrate the Directus Visual Editor with Nuxt.",{"title":1305,"path":1306,"stem":1307,"description":1308,"icon":14,"links":14},"Integrating the Directus Visual Editor with SvelteKit","/tutorials/getting-started/integrating-the-directus-visual-editor-with-sveltekit","tutorials/1.getting-started/integrating-the-directus-visual-editor-with-sveltekit","Learn how to integrate the Directus Visual Editor with SvelteKit.",{"title":1310,"path":1311,"stem":1312,"description":1313,"icon":14,"links":14},"Rendering Dynamic Blocks Using Astro","/tutorials/getting-started/rendering-dynamic-blocks-using-astro","tutorials/1.getting-started/rendering-dynamic-blocks-using-astro","Learn how to render dynamic blocks using Astro.",{"title":1315,"path":1316,"stem":1317,"description":1318,"icon":14,"links":14},"Rendering Dynamic Blocks Using Next.js","/tutorials/getting-started/rendering-dynamic-blocks-using-next","tutorials/1.getting-started/rendering-dynamic-blocks-using-next","Learn how to render dynamic blocks using Next.js.",{"title":1320,"path":1321,"stem":1322,"description":1323,"icon":14,"links":14},"Rendering Dynamic Blocks Using Nuxt","/tutorials/getting-started/rendering-dynamic-blocks-using-nuxt","tutorials/1.getting-started/rendering-dynamic-blocks-using-nuxt","Learn how to render dynamic blocks using Nuxt.",{"title":1325,"path":1326,"stem":1327,"description":1328,"icon":14,"links":14},"Rendering Dynamic Blocks Using SvelteKit","/tutorials/getting-started/rendering-dynamic-blocks-using-sveltekit","tutorials/1.getting-started/rendering-dynamic-blocks-using-sveltekit","Learn how to render dynamic blocks using SvelteKit.",{"title":1330,"path":1331,"stem":1332,"description":1333,"icon":14,"links":14},"Set Up Live Preview with Next.js","/tutorials/getting-started/set-up-live-preview-with-next-js","tutorials/1.getting-started/set-up-live-preview-with-next-js","Learn how to confgure Live Preview with Next.js' draft mode.",{"title":1335,"path":1336,"stem":1337,"description":1338,"icon":14,"links":14},"Set Up Live Preview with Nuxt","/tutorials/getting-started/set-up-live-preview-with-nuxt","tutorials/1.getting-started/set-up-live-preview-with-nuxt","Learn how to create a Nuxt preview plugin to configure Live Preview.",{"title":1340,"path":1341,"stem":1342,"description":1343,"icon":14,"links":14},"Submit Forms Using Directus and Next.js","/tutorials/getting-started/submit-forms-using-directus-and-nextjs","tutorials/1.getting-started/submit-forms-using-directus-and-nextjs","Learn how to submit forms using Directus and Next.js.",{"title":1345,"path":1346,"stem":1347,"description":1348,"icon":14,"links":14},"Submit Forms Using Directus and Nuxt","/tutorials/getting-started/submit-forms-using-directus-and-nuxt","tutorials/1.getting-started/submit-forms-using-directus-and-nuxt","Learn how to submit forms using Directus and Nuxt.",{"title":1350,"path":1351,"stem":1352,"description":1353,"icon":14,"links":14},"Submit Forms Using Directus and SvelteKit","/tutorials/getting-started/submit-forms-using-directus-and-sveltekit","tutorials/1.getting-started/submit-forms-using-directus-and-sveltekit","Learn how to submit forms using Directus and SvelteKit.",{"title":1355,"path":1356,"stem":1357,"description":1358,"icon":14,"links":14},"Using Authentication in Astro","/tutorials/getting-started/using-authentication-in-astro","tutorials/1.getting-started/using-authentication-in-astro","Learn how to setup Directus authentication with Astro.",{"title":1360,"path":1361,"stem":1362,"description":1363,"icon":14,"links":14},"Using Authentication in Next.js","/tutorials/getting-started/using-authentication-in-next-js","tutorials/1.getting-started/using-authentication-in-next-js","Learn how to setup Directus authentication with Next.js.",{"title":1365,"path":1366,"stem":1367,"description":1368,"icon":14,"links":14},"Using Authentication in Nuxt","/tutorials/getting-started/using-authentication-in-nuxt","tutorials/1.getting-started/using-authentication-in-nuxt","Learn how to setup Directus authentication with Nuxt.",{"title":1370,"path":1371,"stem":1372,"description":1373,"icon":14,"links":14},"Using Authentication in React","/tutorials/getting-started/using-authentication-in-react","tutorials/1.getting-started/using-authentication-in-react","Learn how to setup Directus authentication with React.",{"title":1375,"path":1376,"stem":1377,"description":1378,"icon":14,"links":14},"Using Authentication in SvelteKit","/tutorials/getting-started/using-authentication-in-sveltekit","tutorials/1.getting-started/using-authentication-in-sveltekit","Learn how to setup Directus authentication with SvelteKit.",{"title":145,"path":1380,"stem":1381,"children":1382,"description":24,"icon":14,"links":14},"/tutorials/projects","tutorials/2.projects/index",[1383,1384,1389,1394,1399,1404,1409,1414,1419,1424,1429,1434,1439,1444,1449,1454,1459,1464,1469,1474,1479,1484,1489,1494,1499,1504,1509,1514,1519,1524,1529,1534],{"title":145,"path":1380,"stem":1381,"description":24,"icon":14,"links":14},{"title":1385,"path":1386,"stem":1387,"description":1388,"icon":14,"links":14},"Build a Multi-User Chat with JavaScript and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-javascript-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-javascript-and-directus-realtime","Learn how to send and receive data over a realtime connection with JavaScript.",{"title":1390,"path":1391,"stem":1392,"description":1393,"icon":14,"links":14},"Build a Multi-User Chat with React and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-react-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-react-and-directus-realtime","Learn how to send and receive data over a realtime connection in React applications.",{"title":1395,"path":1396,"stem":1397,"description":1398,"icon":14,"links":14},"Build a Multi-User Chat with Vue.js and Directus Realtime","/tutorials/projects/build-a-multi-user-chat-with-vue-js-and-directus-realtime","tutorials/2.projects/build-a-multi-user-chat-with-vue-js-and-directus-realtime","Learn how to send and receive data over a realtime connection in a Vue.js application.",{"title":1400,"path":1401,"stem":1402,"description":1403,"icon":14,"links":14},"Build a Notebook Chrome Extension with Directus Auth","/tutorials/projects/build-a-notebook-chrome-extension-with-directus-auth","tutorials/2.projects/build-a-notebook-chrome-extension-with-directus-auth","Learn to build and integrate a Chrome Extension with Directus Auth.",{"title":1405,"path":1406,"stem":1407,"description":1408,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Astro","/tutorials/projects/build-a-realtime-chat-app-using-directus-and-astro","tutorials/2.projects/build-a-realtime-chat-app-using-directus-and-astro","Learn how to setup Directus realtime with Astro.",{"title":1410,"path":1411,"stem":1412,"description":1413,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Nuxt","/tutorials/projects/build-a-realtime-chat-app-using-directus-and-nuxt","tutorials/2.projects/build-a-realtime-chat-app-using-directus-and-nuxt","Learn how to setup Directus realtime with Nuxt.",{"title":1415,"path":1416,"stem":1417,"description":1418,"icon":14,"links":14},"Build a Realtime Chat App with Directus and Next.js","/tutorials/projects/build-a-realtime-chat-app-with-directus-and-next","tutorials/2.projects/build-a-realtime-chat-app-with-directus-and-next","Learn how to setup Directus realtime with Next.js.",{"title":1420,"path":1421,"stem":1422,"description":1423,"icon":14,"links":14},"Build a Realtime Chat App with Directus and SvelteKit","/tutorials/projects/build-a-realtime-chat-app-with-directus-and-sveltekit","tutorials/2.projects/build-a-realtime-chat-app-with-directus-and-sveltekit","Learn how to setup Directus realtime with SvelteKit.",{"title":1425,"path":1426,"stem":1427,"description":1428,"icon":14,"links":14},"Build a Testimonial Widget with SvelteKit and Directus","/tutorials/projects/build-a-testimonial-widget-with-sveltekit-and-directus","tutorials/2.projects/build-a-testimonial-widget-with-sveltekit-and-directus","Learn how to set up a testimonial widget using SvelteKit and Directus.",{"title":1430,"path":1431,"stem":1432,"description":1433,"icon":14,"links":14},"Build a User Feedback Widget with Vue.js","/tutorials/projects/build-a-user-feedback-widget-with-vue-js","tutorials/2.projects/build-a-user-feedback-widget-with-vue-js-","Learn how we built our docs feedback widget with Directus.",{"title":1435,"path":1436,"stem":1437,"description":1438,"icon":14,"links":14},"Build a Video Streaming App with SvelteKit and Directus","/tutorials/projects/build-a-video-streaming-app-with-sveltekit-and-directus","tutorials/2.projects/build-a-video-streaming-app-with-sveltekit-and-directus","Learn how to store and retrieve video metadata, and then build a streaming application.",{"title":1440,"path":1441,"stem":1442,"description":1443,"icon":14,"links":14},"Build an Ecommerce Platform with Next.js, Stripe, and Directus Automate","/tutorials/projects/build-an-ecommerce-platform-with-next-js-stripe-and-directus-automate","tutorials/2.projects/build-an-ecommerce-platform-with-next-js-stripe-and-directus-automate","Learn to integrate Stripe with Directus Automate to build an e-commerce website.",{"title":1445,"path":1446,"stem":1447,"description":1448,"icon":14,"links":14},"Build an Hotel Booking Platform with Next.js, Stripe, and Directus Automate","/tutorials/projects/build-an-hotel-booking-platform-with-next-js-stripe-and-directus-automate","tutorials/2.projects/build-an-hotel-booking-platform-with-next-js-stripe-and-directus-automate","Learn to build a hotel booking site with dynamic availability and payments via Stripe.",{"title":1450,"path":1451,"stem":1452,"description":1453,"icon":14,"links":14},"Build Directus Garden - A Passive Collaborative Event Booth Demo","/tutorials/projects/build-directus-garden-a-passive-collaborative-event-booth-demo","tutorials/2.projects/build-directus-garden-a-passive-collaborative-event-booth-demo","Learn how we built our engagement platform for live in-person events with P5.js.",{"title":1455,"path":1456,"stem":1457,"description":1458,"icon":14,"links":14},"Build Forms Dynamically using Directus and Astro","/tutorials/projects/build-forms-dynamically-using-directus-and-astro","tutorials/2.projects/build-forms-dynamically-using-directus-and-astro","Learn how to setup Directus fields with Astro.",{"title":1460,"path":1461,"stem":1462,"description":1463,"icon":14,"links":14},"Build Forms Dynamically using Directus and Next.js","/tutorials/projects/build-forms-dynamically-using-directus-and-next","tutorials/2.projects/build-forms-dynamically-using-directus-and-next","Learn how to setup Directus fields with Next.js.",{"title":1465,"path":1466,"stem":1467,"description":1468,"icon":14,"links":14},"Build Forms Dynamically using Directus and Nuxt","/tutorials/projects/build-forms-dynamically-using-directus-and-nuxt","tutorials/2.projects/build-forms-dynamically-using-directus-and-nuxt","Learn how to setup Directus fields with Nuxt.",{"title":1470,"path":1471,"stem":1472,"description":1473,"icon":14,"links":14},"Build Forms Dynamically using Directus and SvelteKit","/tutorials/projects/build-forms-dynamically-using-directus-and-sveltekit","tutorials/2.projects/build-forms-dynamically-using-directus-and-sveltekit","Learn how to setup Directus fields with SvelteKit.",{"title":1475,"path":1476,"stem":1477,"description":1478,"icon":14,"links":14},"Build the Leap Week Registration and Referral System","/tutorials/projects/build-the-leap-week-registration-and-referral-system","tutorials/2.projects/build-the-leap-week-registration-and-referral-system-","Learn how we built our referral-based ticketing and raffle system with AI-generated rabbitars.",{"title":1480,"path":1481,"stem":1482,"description":1483,"icon":14,"links":14},"Building AIVenture - An AI-Powered Game with Directus","/tutorials/projects/building-ai-venture-an-ai-powered-game-with-directus","tutorials/2.projects/building-ai-venture-an-ai-powered-game-with-directus","Learn the advanced techniques used with Directus Automate to build a game.",{"title":1485,"path":1486,"stem":1487,"description":1488,"icon":14,"links":14},"Create a CMS using Directus and Astro","/tutorials/projects/create-a-cms-using-directus-and-astro","tutorials/2.projects/create-a-cms-using-directus-and-astro","Learn how to create a CMS using Directus and Astro.",{"title":1490,"path":1491,"stem":1492,"description":1493,"icon":14,"links":14},"Create a CMS using Directus and Next.js","/tutorials/projects/create-a-cms-using-directus-and-nextjs","tutorials/2.projects/create-a-cms-using-directus-and-nextjs","Learn how to create a CMS using Directus and Next.js.",{"title":1495,"path":1496,"stem":1497,"description":1498,"icon":14,"links":14},"Create a CMS using Directus and Nuxt","/tutorials/projects/create-a-cms-using-directus-and-nuxt","tutorials/2.projects/create-a-cms-using-directus-and-nuxt","Learn how to create a CMS using Directus and Nuxt.",{"title":1500,"path":1501,"stem":1502,"description":1503,"icon":14,"links":14},"Create a CMS using Directus and SvelteKit","/tutorials/projects/create-a-cms-using-directus-and-sveltekit","tutorials/2.projects/create-a-cms-using-directus-and-sveltekit","Learn how to create a CMS using Directus and SvelteKit.",{"title":1505,"path":1506,"stem":1507,"description":1508,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Astro","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-astro","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-astro","Learn how to create dynamic pages you can use in your CMS using Directus and Astro.",{"title":1510,"path":1511,"stem":1512,"description":1513,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Next.js","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-nextjs","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-nextjs","Learn how to create dynamic pages you can use in your CMS using Directus and Next.js.",{"title":1515,"path":1516,"stem":1517,"description":1518,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and Nuxt","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-nuxt","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-nuxt","Learn how to create dynamic pages you can use in your CMS using Directus and Nuxt.",{"title":1520,"path":1521,"stem":1522,"description":1523,"icon":14,"links":14},"Create Dynamic Pages for a CMS using Directus and SvelteKit","/tutorials/projects/create-dynamic-pages-for-a-cms-using-directus-and-sveltekit","tutorials/2.projects/create-dynamic-pages-for-a-cms-using-directus-and-sveltekit","Learn how to create dynamic pages you can use in your CMS using Directus and SvelteKit.",{"title":1525,"path":1526,"stem":1527,"description":1528,"icon":14,"links":14},"How I Built an AI Open Source Santa Roast App with Directus and Nuxt","/tutorials/projects/how-i-built-an-ai-open-source-santa-roast-app-with-directus-and-nuxt","tutorials/2.projects/how-i-built-an-ai-open-source-santa-roast-app-with-directus-and-nuxt","Bryant breaks down how he built an AI-powered app that roasts developers based on their GitHub contributions.",{"title":1530,"path":1531,"stem":1532,"description":1533,"icon":14,"links":14},"Integrate Directus with ESP32 Hardware Sensors","/tutorials/projects/integrate-directus-with-esp-32-hardware-sensors","tutorials/2.projects/integrate-directus-with-esp-32-hardware-sensors","Learn how to integrate Directus with IoT systems by reading and publishing sensor data.",{"title":1535,"path":1536,"stem":1537,"description":1538,"icon":14,"links":14},"Use Directus as a Baby Health Tracker with Owlet and OpsGenie","/tutorials/projects/use-directus-as-a-baby-health-tracker-with-owlet-and-ops-genie","tutorials/2.projects/use-directus-as-a-baby-health-tracker-with-owlet-and-ops-genie","Learn how to integrate Directus with hardware sensors and incident repsonse systems.",{"title":1540,"path":1541,"stem":1542,"children":1543,"description":24,"icon":14,"links":14},"Tips & Tricks","/tutorials/tips-and-tricks","tutorials/3.tips-and-tricks/index",[1544,1545,1550,1555,1560,1565,1570,1575,1580],{"title":1540,"path":1541,"stem":1542,"description":24,"icon":14,"links":14},{"title":1546,"path":1547,"stem":1548,"description":1549,"icon":14,"links":14},"Advanced Types with the Directus SDK","/tutorials/tips-and-tricks/advanced-types-with-the-directus-sdk","tutorials/3.tips-and-tricks/advanced-types-with-the-directus-sdk","Learn how to more-easily work with types and the Directus SDK.",{"title":1551,"path":1552,"stem":1553,"description":1554,"icon":14,"links":14},"Build a Monitoring Pipeline For Flows And Extensions","/tutorials/tips-and-tricks/build-a-monitoring-pipeline-for-flows-and-extensions","tutorials/3.tips-and-tricks/build-a-monitoring-pipeline-for-flows-and-extensions-","Learn how to set up complex pipelines to monitor automations and extensions.",{"title":1556,"path":1557,"stem":1558,"description":1559,"icon":14,"links":14},"Configure Okta as a Single Sign-On Provider","/tutorials/tips-and-tricks/configure-okta-as-a-single-sign-on-provider","tutorials/3.tips-and-tricks/configure-okta-as-a-single-sign-on-provider","Learn how to set up Okta SSO with the SAML authentication mechanism.",{"title":1561,"path":1562,"stem":1563,"description":1564,"icon":14,"links":14},"Implement Pagination and Infinite Scrolling in Next.js","/tutorials/tips-and-tricks/implement-pagination-and-infinite-scrolling-in-next-js","tutorials/3.tips-and-tricks/implement-pagination-and-infinite-scrolling-in-next-js-","Learn various techniques to load paginated data in your Next.js application.",{"title":1566,"path":1567,"stem":1568,"description":1569,"icon":14,"links":14},"Importing Files in Directus Automate","/tutorials/tips-and-tricks/importing-files-in-directus-automate","tutorials/3.tips-and-tricks/importing-files-in-directus-automate","Learn how to use the Request URL operation to import files in Directus Automate.",{"title":1571,"path":1572,"stem":1573,"description":1574,"icon":14,"links":14},"Preview Files in Live Preview with Google Docs Previews","/tutorials/tips-and-tricks/preview-files-in-live-preview-with-google-docs-previews","tutorials/3.tips-and-tricks/preview-files-in-live-preview-with-google-docs-previews","Learn how to use Google Gview to preview many file formats in Directus Editor.",{"title":1576,"path":1577,"stem":1578,"description":1579,"icon":14,"links":14},"Search Engine Optimization Best Practices","/tutorials/tips-and-tricks/search-engine-optimization-best-practices","tutorials/3.tips-and-tricks/search-engine-optimization-best-practices","Learn some best practices for enabling SEO in your projects using Directus.",{"title":1581,"path":1582,"stem":1583,"description":1584,"icon":14,"links":14},"Understanding Kubernetes","/tutorials/tips-and-tricks/understanding-kubernetes","tutorials/3.tips-and-tricks/understanding-kubernetes","Learn about key Kubernetes concepts and how they interact with each other.",{"title":1586,"path":1587,"stem":1588,"children":1589,"description":24,"icon":14,"links":14},"Migration","/tutorials/migration","tutorials/4.migration/index",[1590,1591,1596,1601,1606],{"title":1586,"path":1587,"stem":1588,"description":24,"icon":14,"links":14},{"title":1592,"path":1593,"stem":1594,"description":1595,"icon":14,"links":14},"Migrate from Notion to Directus","/tutorials/migration/migrate-from-notion-to-directus","tutorials/4.migration/migrate-from-notion-to-directus","Learn how to migrate data from Notion databases to Directus.",{"title":1597,"path":1598,"stem":1599,"description":1600,"icon":14,"links":14},"Migrate from Nuxt Content to Directus","/tutorials/migration/migrate-from-nuxt-content-to-directus","tutorials/4.migration/migrate-from-nuxt-content-to-directus","Learn how to move from a flat-file CMS to Directus.",{"title":1602,"path":1603,"stem":1604,"description":1605,"icon":14,"links":14},"Migrate from WordPress to Directus","/tutorials/migration/migrate-from-wordpress-to-directus","tutorials/4.migration/migrate-from-wordpress-to-directus","Learn how to migrate posts and images to Directus, with tips on plugins.",{"title":1607,"path":1608,"stem":1609,"description":1610,"icon":14,"links":14},"Promoting Changes Between Environments in Directus","/tutorials/migration/promoting-changes-between-environments-in-directus","tutorials/4.migration/promoting-changes-between-environments-in-directus","Learn the options to migrate schema and data between Directus projects.",{"title":372,"path":1612,"stem":1613,"children":1614,"description":1616,"icon":14,"links":14},"/tutorials/extensions","tutorials/5.extensions/index",[1615,1617,1622,1627,1632,1637,1642,1647,1652,1659,1666,1673,1678,1683,1688,1693,1698,1703,1708,1713,1718,1723],{"title":372,"path":1612,"stem":1613,"description":1616,"icon":14,"links":14},"All about extensions",{"title":1618,"path":1619,"stem":1620,"description":1621,"icon":14,"links":14},"Check Permissions in a Custom Endpoint","/tutorials/extensions/check-permissions-in-a-custom-endpoint","tutorials/5.extensions/check-permissions-in-a-custom-endpoint","Learn how to use internal Directus permissions when creating a custom endpoint.",{"title":1623,"path":1624,"stem":1625,"description":1626,"icon":14,"links":14},"Create Collection Items in Custom Panels","/tutorials/extensions/create-collection-items-in-custom-panels","tutorials/5.extensions/create-collection-items-in-custom-panels","Learn how to use built-in interfaces and composables to create new collections.",{"title":1628,"path":1629,"stem":1630,"description":1631,"icon":14,"links":14},"Create New Customers in Stripe in a Custom Hook","/tutorials/extensions/create-new-customers-in-stripe-in-a-custom-hook","tutorials/5.extensions/create-new-customers-in-stripe-in-a-custom-hook","Learn how to use the Stripe SDK to create data when actions occur in Directus.",{"title":1633,"path":1634,"stem":1635,"description":1636,"icon":14,"links":14},"Display External API Data From Vonage In Custom Panels","/tutorials/extensions/display-external-api-data-from-vonage-in-custom-panels","tutorials/5.extensions/display-external-api-data-from-vonage-in-custom-panels","Learn how to display records from external systems in Directus Insights.",{"title":1638,"path":1639,"stem":1640,"description":1641,"icon":14,"links":14},"Display External Weather API Data In Custom Panels","/tutorials/extensions/display-external-weather-api-data-in-custom-panels","tutorials/5.extensions/display-external-weather-api-data-in-custom-panels","Learn how to display external data in panels with a bundle and endpoint.",{"title":1643,"path":1644,"stem":1645,"description":1646,"icon":14,"links":14},"Format Dates in a Custom Display Extension","/tutorials/extensions/format-dates-in-a-custom-display-extension","tutorials/5.extensions/format-dates-in-a-custom-display-extension","Learn how to build a custom display to format data in Directus.",{"title":1648,"path":1649,"stem":1650,"description":1651,"icon":14,"links":14},"Implement Navigation in Multipage Custom Modules","/tutorials/extensions/implement-navigation-in-multipage-custom-modules","tutorials/5.extensions/implement-navigation-in-multipage-custom-modules","Learn how to navigate between multiple pages in module extensions.",{"title":1653,"path":1654,"stem":1655,"children":1656,"description":1658,"icon":14,"links":14},"Integrate Algolia Indexing with Custom Hooks","/tutorials/extensions/integrate-algolia-indexing-with-custom-hooks","tutorials/5.extensions/integrate-algolia-indexing-with-custom-hooks",[1657],{"title":1653,"path":1654,"stem":1655,"description":1658,"icon":14,"links":14},"Learn how to maintain an Algolia index when data is created, updated, and deleted.",{"title":1660,"path":1661,"stem":1662,"children":1663,"description":1665,"icon":14,"links":14},"Integrate Elasticsearch Indexing with Custom Hooks","/tutorials/extensions/integrate-elasticsearch-indexing-with-custom-hooks","tutorials/5.extensions/integrate-elasticsearch-indexing-with-custom-hooks",[1664],{"title":1660,"path":1661,"stem":1662,"description":1665,"icon":14,"links":14},"Learn how to maintain an Elasticsearch index when data is created, updated, and deleted.",{"title":1667,"path":1668,"stem":1669,"children":1670,"description":1672,"icon":14,"links":14},"Integrate Meilisearch Indexing with Custom Hooks","/tutorials/extensions/integrate-meilisearch-indexing-with-custom-hooks","tutorials/5.extensions/integrate-meilisearch-indexing-with-custom-hooks",[1671],{"title":1667,"path":1668,"stem":1669,"description":1672,"icon":14,"links":14},"Learn how to maintain an Meilisearch index when data is created, updated, and deleted.",{"title":1674,"path":1675,"stem":1676,"description":1677,"icon":14,"links":14},"Monitor and Error Track with Sentry in Custom Hooks","/tutorials/extensions/monitor-and-error-track-with-sentry-in-custom-hooks","tutorials/5.extensions/monitor-and-error-track-with-sentry-in-custom-hooks","Learn how to integrate Sentry error tracking in both your API and Data Studio.",{"title":1679,"path":1680,"stem":1681,"description":1682,"icon":14,"links":14},"Proxy an External API in a Custom Endpoint Extension","/tutorials/extensions/proxy-an-external-api-in-a-custom-endpoint-extension","tutorials/5.extensions/proxy-an-external-api-in-a-custom-endpoint-extension","Learn how to make external APIs available via Directus in a custom endpoint.",{"title":1684,"path":1685,"stem":1686,"description":1687,"icon":14,"links":14},"Read Collection Data in Custom Layouts","/tutorials/extensions/read-collection-data-in-custom-layouts","tutorials/5.extensions/read-collection-data-in-custom-layouts","Learn how to build your first layout with data from a collection.",{"title":1689,"path":1690,"stem":1691,"description":1692,"icon":14,"links":14},"Send SMS Messages with Twilio in Custom Operations","/tutorials/extensions/send-sms-messages-with-twilio-in-custom-operations","tutorials/5.extensions/send-sms-messages-with-twilio-in-custom-operations","Learn how to build a custom operation that uses the Twilio SDK.",{"title":1694,"path":1695,"stem":1696,"description":1697,"icon":14,"links":14},"Send SMS Messages with Twilio in Custom Panels","/tutorials/extensions/send-sms-messages-with-twilio-in-custom-panels","tutorials/5.extensions/send-sms-messages-with-twilio-in-custom-panels","Learn how to build a form inside a panel extension and use external APIs.",{"title":1699,"path":1700,"stem":1701,"description":1702,"icon":14,"links":14},"Summarize Relational Items in a Custom Display Extension","/tutorials/extensions/summarize-relational-items-in-a-custom-display-extension","tutorials/5.extensions/summarize-relational-items-in-a-custom-display-extension","Learn how to work with relational data in display extensions.",{"title":1704,"path":1705,"stem":1706,"description":1707,"icon":14,"links":14},"Understand Available Slots in Custom Modules","/tutorials/extensions/understand-available-slots-in-custom-modules","tutorials/5.extensions/understand-available-slots-in-custom-modules","Learn about all of the slots available in your custom modules.",{"title":1709,"path":1710,"stem":1711,"description":1712,"icon":14,"links":14},"Use Dynamic Values in Custom Email Templates","/tutorials/extensions/use-dynamic-values-in-custom-email-templates","tutorials/5.extensions/use-dynamic-values-in-custom-email-templates","Learn how to inject dynamic data into liquid templates.",{"title":1714,"path":1715,"stem":1716,"description":1717,"icon":14,"links":14},"Use npm Packages in Custom Operations","/tutorials/extensions/use-npm-packages-in-custom-operations","tutorials/5.extensions/use-npm-packages-in-custom-operations","Learn how to expose an npm package as an operation in Directus Automate.",{"title":1719,"path":1720,"stem":1721,"description":1722,"icon":14,"links":14},"Validate Phone Numbers with Twilio in a Custom Hook","/tutorials/extensions/validate-phone-numbers-with-twilio-in-a-custom-hook","tutorials/5.extensions/validate-phone-numbers-with-twilio-in-a-custom-hook","Learn how to prevent an item from saving if it has an invalid phone number.",{"title":1724,"path":1725,"stem":1726,"description":1727,"icon":14,"links":14},"Validating Third-Party JWTs in Directus (with Okta)","/tutorials/extensions/validating-third-party-jwts-in-directus","tutorials/5.extensions/validating-third-party-jwts-in-directus","Learn how to translate third part JWT's to Directus accountability",{"title":1729,"path":1730,"stem":1731,"children":1732,"description":1734,"icon":14,"links":14},"How to Deploy Directus","/tutorials/self-hosting","tutorials/6.self-hosting/index",[1733,1735,1740,1745,1750,1755,1760],{"title":1729,"path":1730,"stem":1731,"description":1734,"icon":14,"links":14},"Deploy Directus with Directus Cloud, self-host with Docker, or follow step-by-step guides for your preferred cloud provider.",{"title":1736,"path":1737,"stem":1738,"description":1739,"icon":14,"links":14},"Deploy Directus to an Ubuntu Server","/tutorials/self-hosting/deploy-directus-to-an-ubuntu-server","tutorials/6.self-hosting/deploy-directus-to-an-ubuntu-server","Learn how to deploy Directus on a Docker container on an Ubuntu server.",{"title":1741,"path":1742,"stem":1743,"description":1744,"icon":14,"links":14},"Deploy Directus to AWS EC2","/tutorials/self-hosting/deploy-directus-to-aws-ec2","tutorials/6.self-hosting/deploy-directus-to-aws-ec2","Learn how to deploy a Directus to AWS EC2, with a RDS database and a S3 storage bucket.",{"title":1746,"path":1747,"stem":1748,"description":1749,"icon":14,"links":14},"Deploy Directus to Azure Web Apps","/tutorials/self-hosting/deploy-directus-to-azure-web-apps","tutorials/6.self-hosting/deploy-directus-to-azure-web-apps","Learn how to deploy Directus on a Docker container on Azure.",{"title":1751,"path":1752,"stem":1753,"description":1754,"icon":14,"links":14},"Deploy Directus to Digital Ocean","/tutorials/self-hosting/deploy-directus-to-digital-ocean","tutorials/6.self-hosting/deploy-directus-to-digital-ocean","Learn how to deploy Directus on the Digital Ocean App Platform.",{"title":1756,"path":1757,"stem":1758,"description":1759,"icon":14,"links":14},"Deploy Directus to Google Cloud Platform","/tutorials/self-hosting/deploy-directus-to-google-cloud-platform","tutorials/6.self-hosting/deploy-directus-to-google-cloud-platform","Learn how to deploy Directus on GCP with a Cloud SQL database and Cloud Storage Bucket.",{"title":1761,"path":1762,"stem":1763,"description":1764,"icon":14,"links":14},"Deploy Directus to Railway","/tutorials/self-hosting/deploy-directus-to-railway","tutorials/6.self-hosting/deploy-directus-to-railway","Deploy Directus on Railway using the official one-click templates (blank instance or CMS template) with PostgreSQL, Redis, and S3-compatible storage.",{"title":1766,"path":1767,"stem":1768,"children":1769,"description":24,"icon":14,"links":14},"Workflows","/tutorials/workflows","tutorials/7.workflows/index",[1770,1771,1776,1781,1786,1791,1796,1801,1806,1811,1816,1821,1826,1831,1836],{"title":1766,"path":1767,"stem":1768,"description":24,"icon":14,"links":14},{"title":1772,"path":1773,"stem":1774,"description":1775,"icon":14,"links":14},"Build Content Approval Workflows with Custom Permissions","/tutorials/workflows/build-content-approval-workflows-with-custom-permissions","tutorials/7.workflows/build-content-approval-workflows-with-custom-permissions","Learn how to configure roles and permissions for complex automations.",{"title":1777,"path":1778,"stem":1779,"description":1780,"icon":14,"links":14},"Combine Live Preview and Content Versioning with Next.js","/tutorials/workflows/combine-live-preview-and-content-versioning-with-next-js","tutorials/7.workflows/combine-live-preview-and-content-versioning-with-next-js","Learn how to set up Live Preview with different content versions in your Next.js application.",{"title":1782,"path":1783,"stem":1784,"description":1785,"icon":14,"links":14},"Create GitHub Issues with Directus Automate","/tutorials/workflows/create-github-issues-with-directus-automate","tutorials/7.workflows/create-github-issues-with-directus-automate","Learn how to integrate GitHub with Directus Automate to create new issues.",{"title":1787,"path":1788,"stem":1789,"description":1790,"icon":14,"links":14},"Detect High-Risk Phone Numbers with Vonage and Directus Automate","/tutorials/workflows/detect-high-risk-phone-numbers-with-vonage-and-directus-automate","tutorials/7.workflows/detect-high-risk-phone-numbers-with-vonage-and-directus-automate","Learn how to integrate Vonage's Number Insights API with Directus Automate to validate numbers.",{"title":1792,"path":1793,"stem":1794,"description":1795,"icon":14,"links":14},"Enrich User Data with Clearbit and Directus Automate","/tutorials/workflows/enrich-user-data-with-clearbit-and-directus-automate","tutorials/7.workflows/enrich-user-data-with-clearbit-and-directus-automate","Learn how to integrate Clearbit data enrichment with Directus Automate.",{"title":1797,"path":1798,"stem":1799,"description":1800,"icon":14,"links":14},"Generate Images with DALL•E and Directus Automate","/tutorials/workflows/generate-images-with-dall-e-and-directus-automate","tutorials/7.workflows/generate-images-with-dall-e-and-directus-automate","Learn how to integrate OpenAI's Dall•E models with Directus Automate.",{"title":1802,"path":1803,"stem":1804,"description":1805,"icon":14,"links":14},"Generate Social Posts with GPT-4 and Directus Automate","/tutorials/workflows/generate-social-posts-with-gpt-4-and-directus-automate","tutorials/7.workflows/generate-social-posts-with-gpt-4-and-directus-automate","Learn how to integrate OpenAI's GPT-4 model with Directus Automate.",{"title":1807,"path":1808,"stem":1809,"description":1810,"icon":14,"links":14},"Generate Transcripts with Deepgram and Directus Automate","/tutorials/workflows/generate-transcripts-with-deepgram-and-directus-automate","tutorials/7.workflows/generate-transcripts-with-deepgram-and-directus-automate","Learn how to integrate Deepgram's Speech-to-Text API with Directus Automate.",{"title":1812,"path":1813,"stem":1814,"description":1815,"icon":14,"links":14},"Integrating Multilingual Content with Directus and Crowdin","/tutorials/workflows/integrating-multilingual-content-with-directus-and-crowdin","tutorials/7.workflows/integrating-multilingual-content-with-directus-and-crowdin","Learn how to localize content in Directus using Crowdin's connector with Directus.",{"title":1817,"path":1818,"stem":1819,"description":1820,"icon":14,"links":14},"Invincible AI content workflows with Inngest and Directus","/tutorials/workflows/invincible-ai-content-workflows-with-inngest-and-directus","tutorials/7.workflows/invincible-ai-content-workflows-with-inngest-and-directus","Learn how to configure integration Directus and Inngest to build durable workflows for any scale.",{"title":1822,"path":1823,"stem":1824,"description":1825,"icon":14,"links":14},"Schedule Future Content with Directus Automate","/tutorials/workflows/schedule-future-content-with-directus-automate","tutorials/7.workflows/schedule-future-content-with-directus-automate","Learn how to set content to be scheduled on a future date with Directs Automate.",{"title":1827,"path":1828,"stem":1829,"description":1830,"icon":14,"links":14},"Tag Images with Clarifai and Directus Automate","/tutorials/workflows/tag-images-with-clarifai-and-directus-automate","tutorials/7.workflows/tag-images-with-clarifai-and-directus-automate","Learn how to integrate Clarifai's image recognition APIs with Directus Automate.",{"title":1832,"path":1833,"stem":1834,"description":1835,"icon":14,"links":14},"Trigger Netlify Site Builds with Directus Automate","/tutorials/workflows/trigger-netlify-site-builds-with-directus-automate","tutorials/7.workflows/trigger-netlify-site-builds-with-directus-automate","Learn how to trigger new Netlify website builds through Directus Automate.",{"title":1837,"path":1838,"stem":1839,"description":1840,"icon":14,"links":14},"Trigger Vercel Site Builds with Directus Automate","/tutorials/workflows/trigger-vercel-site-builds-with-directus-automate","tutorials/7.workflows/trigger-vercel-site-builds-with-directus-automate","Learn how to trigger new Vercel website builds through Directus Automate.",{"id":1842,"icon":1843,"content":1844,"link":1845},"812bf73d-ebfb-4246-9538-937a09a0c795","connected_tv","Learn more about our native MCP","https://directus.io/mcp",{"id":1847,"title":678,"authors":14,"body":1848,"description":685,"extension":6884,"headline":14,"icon":14,"links":14,"meta":6885,"navigation":2497,"path":683,"rawbody":6886,"seo":6887,"stem":684,"technologies":14,"__hash__":6888},"content/guides/04.connect/8.json-queries-reference.md",{"type":1849,"value":1850,"toc":6856},"minimark",[1851,1855,1896,1899,1904,1907,1993,1998,2007,2014,2099,2104,2122,2128,2139,2163,2167,2173,2191,2194,2226,2239,2243,2246,2252,2264,2314,2321,2325,2564,2567,2731,2735,2741,2972,2974,3143,3147,3150,3158,3348,3350,3539,3543,3548,3553,3559,3565,3760,3762,3945,3949,3952,4143,4145,4312,4316,4322,4591,4593,4759,4763,4768,4811,4814,4818,4832,5032,5053,5075,5094,5100,5105,5113,5116,5121,5127,5137,5141,5275,5278,5289,5480,5482,5550,5554,5560,5806,5808,5853,5856,5872,6088,6090,6135,6139,6147,6319,6321,6387,6391,6404,6610,6612,6656,6666,6747,6751,6765,6769,6774,6794,6799,6809,6814,6833,6838,6852],[1852,1853,1854],"p",{},"Directus provides two complementary tools for working with JSON fields in queries:",[1856,1857,1858,1883],"ul",{},[1859,1860,1861,1862,1870,1871,1874,1875,1878,1879,1882],"li",{},"The ",[1863,1864,1865,1869],"strong",{},[1866,1867,1868],"code",{},"json(field, path)"," function"," extracts a specific value from a JSON document. It can be used in the ",[1866,1872,1873],{},"fields",", ",[1866,1876,1877],{},"sort",", and ",[1866,1880,1881],{},"alias"," query parameters.",[1859,1884,1861,1885,1891,1892,1895],{},[1863,1886,1887,1890],{},[1866,1888,1889],{},"_json"," filter operator"," filters items by values inside a JSON document without loading the full document. Use it in the ",[1866,1893,1894],{},"filter"," query parameter.",[1852,1897,1898],{},"Both use the same path notation and work across REST, GraphQL, and the TypeScript SDK.",[1900,1901,1903],"h2",{"id":1902},"path-notation","Path Notation",[1852,1905,1906],{},"Paths use dot notation for object keys and bracket notation for array indices.",[1908,1909,1910,1926],"table",{},[1911,1912,1913],"thead",{},[1914,1915,1916,1920,1923],"tr",{},[1917,1918,1919],"th",{},"Pattern",[1917,1921,1922],{},"Example",[1917,1924,1925],{},"Meaning",[1927,1928,1929,1945,1960,1978],"tbody",{},[1914,1930,1931,1937,1942],{},[1932,1933,1934],"td",{},[1866,1935,1936],{},"key",[1932,1938,1939],{},[1866,1940,1941],{},"color",[1932,1943,1944],{},"Top-level key",[1914,1946,1947,1952,1957],{},[1932,1948,1949],{},[1866,1950,1951],{},"a.b.c",[1932,1953,1954],{},[1866,1955,1956],{},"settings.theme.color",[1932,1958,1959],{},"Nested keys",[1914,1961,1962,1967,1972],{},[1932,1963,1964],{},[1866,1965,1966],{},"[n]",[1932,1968,1969],{},[1866,1970,1971],{},"tags[0]",[1932,1973,1974,1975],{},"Array element at index ",[1866,1976,1977],{},"n",[1914,1979,1980,1985,1990],{},[1932,1981,1982],{},[1866,1983,1984],{},"a[n].b",[1932,1986,1987],{},[1866,1988,1989],{},"items[0].name",[1932,1991,1992],{},"Mixed object/array access",[1852,1994,1995],{},[1863,1996,1997],{},"Examples:",[1999,2000,2005],"pre",{"className":2001,"code":2003,"language":2004},[2002],"language-text","json(metadata, color)                   → top-level key\njson(metadata, settings.theme)          → nested object\njson(data, items[0].name)               → array element property\njson(data, [0])                         → first element of a top-level array\n","text",[1866,2006,2003],{"__ignoreMap":24},[1852,2008,2009,2010,2013],{},"The following path syntaxes are ",[1863,2011,2012],{},"not supported"," and return an error in both the function and filter operator:",[1908,2015,2016,2025],{},[1911,2017,2018],{},[1914,2019,2020,2023],{},[1917,2021,2022],{},"Expression",[1917,2024,1922],{},[1927,2026,2027,2037,2050,2063,2073,2086],{},[1914,2028,2029,2032],{},[1932,2030,2031],{},"Empty brackets (wildcard)",[1932,2033,2034],{},[1866,2035,2036],{},"items[]",[1914,2038,2039,2045],{},[1932,2040,2041,2044],{},[1866,2042,2043],{},"[*]"," wildcard",[1932,2046,2047],{},[1866,2048,2049],{},"items[*].name",[1914,2051,2052,2058],{},[1932,2053,2054,2057],{},[1866,2055,2056],{},"*"," glob",[1932,2059,2060],{},[1866,2061,2062],{},"items.*",[1914,2064,2065,2068],{},[1932,2066,2067],{},"JSONPath predicates",[1932,2069,2070],{},[1866,2071,2072],{},"items[?(@.price > 10)]",[1914,2074,2075,2081],{},[1932,2076,2077,2080],{},[1866,2078,2079],{},"@"," current node",[1932,2082,2083],{},[1866,2084,2085],{},"@.name",[1914,2087,2088,2094],{},[1932,2089,2090,2093],{},[1866,2091,2092],{},"$"," root",[1932,2095,2096],{},[1866,2097,2098],{},"$.name",[2100,2101,2103],"h3",{"id":2102},"object-keys-with-special-characters","Object Keys with Special Characters",[1852,2105,2106,2107,2110,2111,2114,2115,2118,2119,2109],{},"The path syntax uses ",[1866,2108,2109],{},"."," as a separator between key segments and has no escape mechanism. Object keys that contain dots, spaces, or other special characters cannot be reached. For example, a key ",[1866,2112,2113],{},"\"first.name\""," is interpreted as nested access to key ",[1866,2116,2117],{},"first",", then key ",[1866,2120,2121],{},"name",[1900,2123,1861,2125,2127],{"id":2124},"the-jsonfield-path-function",[1866,2126,1868],{}," Function",[1852,2129,1861,2130,2132,2133,1874,2135,1878,2137,1882],{},[1866,2131,1868],{}," function extracts the value from the specified path in a JSON field. It can be used anywhere a field reference is accepted, including the ",[1866,2134,1873],{},[1866,2136,1877],{},[1866,2138,1881],{},[2140,2141,2144],"callout",{"icon":2142,"color":2143},"material-symbols:warning-rounded","warning",[1852,2145,2146,2149,2150,2152,2153,2155,2156,2162],{},[1863,2147,2148],{},"Not Supported in Filters","\nThe ",[1866,2151,1868],{}," function is not supported in the ",[1866,2154,1894],{}," query parameter. For filtering JSON fields, use the ",[2157,2158,2160,1890],"a",{"href":2159},"#the-_json-filter-operator",[1866,2161,1889],{}," instead.",[2100,2164,2166],{"id":2165},"syntax","Syntax",[1999,2168,2171],{"className":2169,"code":2170,"language":2004},[2002],"json(field, path)\n",[1866,2172,2170],{"__ignoreMap":24},[1856,2174,2175,2183],{},[1859,2176,2177,2182],{},[1863,2178,2179],{},[1866,2180,2181],{},"field"," is the name of a JSON column in the collection (or a relational path to one).",[1859,2184,2185,2190],{},[1863,2186,2187],{},[1866,2188,2189],{},"path"," is a dot-and-bracket notation path to the value you want to extract from within the JSON document.",[1852,2192,2193],{},"Both arguments are required and separated by a comma.",[1852,2195,2196,2197,2200,2201,2204,2205,2208,2209,2211,2212,2215,2216,2218,2219,2222,2223,2225],{},"In GraphQL, each ",[1866,2198,2199],{},"json","-typed field exposes a ",[1866,2202,2203],{},"json(path: String!)"," sub-field inside ",[1866,2206,2207],{},"{fieldName}_func",". The ",[1866,2210,2189],{}," argument is required. The return type is ",[1866,2213,2214],{},"JSON"," (any scalar, object, or array). ",[1866,2217,2207],{}," already exists for the ",[1866,2220,2221],{},"count"," sub-field; ",[1866,2224,2199],{}," sits alongside it in the same selection.",[1852,2227,2228,2229,2232,2233,2235,2236,2238],{},"The TypeScript SDK accepts ",[1866,2230,2231],{},"json(fieldName, path)"," strings in the ",[1866,2234,1873],{}," array. The first argument is constrained by TypeScript to fields typed as ",[1866,2237,2199],{}," in your schema. An invalid field name produces a type error. The SDK computes the response alias type automatically from the literal string, so extracted values are fully typed.",[2100,2240,2242],{"id":2241},"response-format","Response Format",[1852,2244,2245],{},"For REST and the SDK, extracted values are returned as additional fields on each item using auto-generated aliases. The alias follows the pattern:",[1999,2247,2250],{"className":2248,"code":2249,"language":2004},[2002],"{field}_{path}_json\n",[1866,2251,2249],{"__ignoreMap":24},[1852,2253,2254,2255,1874,2258,1874,2261,2263],{},"Special characters in the path (",[1866,2256,2257],{},"[",[1866,2259,2260],{},"]",[1866,2262,2109],{},") are replaced with underscores.",[1908,2265,2266,2276],{},[1911,2267,2268],{},[1914,2269,2270,2273],{},[1917,2271,2272],{},"Request field",[1917,2274,2275],{},"Response key",[1927,2277,2278,2290,2302],{},[1914,2279,2280,2285],{},[1932,2281,2282],{},[1866,2283,2284],{},"json(metadata, color)",[1932,2286,2287],{},[1866,2288,2289],{},"metadata_color_json",[1914,2291,2292,2297],{},[1932,2293,2294],{},[1866,2295,2296],{},"json(metadata, settings.priority)",[1932,2298,2299],{},[1866,2300,2301],{},"metadata_settings_priority_json",[1914,2303,2304,2309],{},[1932,2305,2306],{},[1866,2307,2308],{},"json(data, items[0].name)",[1932,2310,2311],{},[1866,2312,2313],{},"data_items_0_name_json",[1852,2315,2316,2317,2320],{},"In GraphQL, the extracted value is returned inside ",[1866,2318,2319],{},"{fieldName}_func.json",". When requesting multiple paths from the same field, use GraphQL field aliases to distinguish them.",[2100,2322,2324],{"id":2323},"basic-example","Basic Example",[2326,2327,2328,2349,2433],"code-group",{},[1999,2329,2334],{"className":2330,"code":2331,"filename":2332,"language":2333,"meta":24,"style":24},"language-http shiki shiki-themes github-light github-light github-dark","GET /items/articles?fields=id,title,json(metadata, color)\n","REST","http",[1866,2335,2336],{"__ignoreMap":24},[2337,2338,2341,2345],"span",{"class":2339,"line":2340},"line",1,[2337,2342,2344],{"class":2343},"s8jYJ","GET",[2337,2346,2348],{"class":2347},"sxrX7"," /items/articles?fields=id,title,json(metadata, color)\n",[1999,2350,2355],{"className":2351,"code":2352,"filename":2353,"language":2354,"meta":24,"style":24},"language-graphql shiki shiki-themes github-light github-light github-dark","query {\n    articles {\n        id\n        title\n        metadata_func {\n            json(path: \"color\")\n        }\n    }\n}\n","GraphQL","graphql",[1866,2356,2357,2365,2374,2380,2386,2394,2415,2421,2427],{"__ignoreMap":24},[2337,2358,2359,2362],{"class":2339,"line":2340},[2337,2360,2361],{"class":2343},"query",[2337,2363,2364],{"class":2347}," {\n",[2337,2366,2368,2372],{"class":2339,"line":2367},2,[2337,2369,2371],{"class":2370},"sP4rz","    articles",[2337,2373,2364],{"class":2347},[2337,2375,2377],{"class":2339,"line":2376},3,[2337,2378,2379],{"class":2370},"        id\n",[2337,2381,2383],{"class":2339,"line":2382},4,[2337,2384,2385],{"class":2370},"        title\n",[2337,2387,2389,2392],{"class":2339,"line":2388},5,[2337,2390,2391],{"class":2370},"        metadata_func",[2337,2393,2364],{"class":2347},[2337,2395,2397,2400,2403,2405,2408,2412],{"class":2339,"line":2396},6,[2337,2398,2399],{"class":2370},"            json",[2337,2401,2402],{"class":2347},"(",[2337,2404,2189],{"class":2370},[2337,2406,2407],{"class":2347},": ",[2337,2409,2411],{"class":2410},"sIIMD","\"color\"",[2337,2413,2414],{"class":2347},")\n",[2337,2416,2418],{"class":2339,"line":2417},7,[2337,2419,2420],{"class":2347},"        }\n",[2337,2422,2424],{"class":2339,"line":2423},8,[2337,2425,2426],{"class":2347},"    }\n",[2337,2428,2430],{"class":2339,"line":2429},9,[2337,2431,2432],{"class":2347},"}\n",[1999,2434,2439],{"className":2435,"code":2436,"filename":2437,"language":2438,"meta":24,"style":24},"language-js shiki shiki-themes github-light github-light github-dark","import { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItems('articles', {\n        fields: ['id', 'title', 'json(metadata, color)'],\n    })\n);\n","SDK","js",[1866,2440,2441,2458,2493,2499,2520,2533,2554,2559],{"__ignoreMap":24},[2337,2442,2443,2446,2449,2452,2455],{"class":2339,"line":2340},[2337,2444,2445],{"class":2343},"import",[2337,2447,2448],{"class":2347}," { createDirectus, rest, readItems } ",[2337,2450,2451],{"class":2343},"from",[2337,2453,2454],{"class":2410}," '@directus/sdk'",[2337,2456,2457],{"class":2347},";\n",[2337,2459,2460,2463,2467,2470,2474,2476,2479,2482,2485,2487,2490],{"class":2339,"line":2367},[2337,2461,2462],{"class":2343},"const",[2337,2464,2466],{"class":2465},"sBjJW"," directus",[2337,2468,2469],{"class":2343}," =",[2337,2471,2473],{"class":2472},"snPdu"," createDirectus",[2337,2475,2402],{"class":2347},[2337,2477,2478],{"class":2410},"'https://directus.example.com'",[2337,2480,2481],{"class":2347},").",[2337,2483,2484],{"class":2472},"with",[2337,2486,2402],{"class":2347},[2337,2488,2489],{"class":2472},"rest",[2337,2491,2492],{"class":2347},"());\n",[2337,2494,2495],{"class":2339,"line":2376},[2337,2496,2498],{"emptyLinePlaceholder":2497},true,"\n",[2337,2500,2501,2503,2506,2508,2511,2514,2517],{"class":2339,"line":2382},[2337,2502,2462],{"class":2343},[2337,2504,2505],{"class":2465}," result",[2337,2507,2469],{"class":2343},[2337,2509,2510],{"class":2343}," await",[2337,2512,2513],{"class":2347}," directus.",[2337,2515,2516],{"class":2472},"request",[2337,2518,2519],{"class":2347},"(\n",[2337,2521,2522,2525,2527,2530],{"class":2339,"line":2388},[2337,2523,2524],{"class":2472},"    readItems",[2337,2526,2402],{"class":2347},[2337,2528,2529],{"class":2410},"'articles'",[2337,2531,2532],{"class":2347},", {\n",[2337,2534,2535,2538,2541,2543,2546,2548,2551],{"class":2339,"line":2396},[2337,2536,2537],{"class":2347},"        fields: [",[2337,2539,2540],{"class":2410},"'id'",[2337,2542,1874],{"class":2347},[2337,2544,2545],{"class":2410},"'title'",[2337,2547,1874],{"class":2347},[2337,2549,2550],{"class":2410},"'json(metadata, color)'",[2337,2552,2553],{"class":2347},"],\n",[2337,2555,2556],{"class":2339,"line":2417},[2337,2557,2558],{"class":2347},"    })\n",[2337,2560,2561],{"class":2339,"line":2423},[2337,2562,2563],{"class":2347},");\n",[1852,2565,2566],{},"Response:",[2326,2568,2569,2642],{},[1999,2570,2574],{"className":2571,"code":2572,"filename":2573,"language":2199,"meta":24,"style":24},"language-json shiki shiki-themes github-light github-light github-dark","{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"title\": \"An Article\",\n            \"metadata_color_json\": \"blue\"\n        }\n    ]\n}\n","REST / SDK",[1866,2575,2576,2581,2589,2594,2607,2619,2629,2633,2638],{"__ignoreMap":24},[2337,2577,2578],{"class":2339,"line":2340},[2337,2579,2580],{"class":2347},"{\n",[2337,2582,2583,2586],{"class":2339,"line":2367},[2337,2584,2585],{"class":2465},"    \"data\"",[2337,2587,2588],{"class":2347},": [\n",[2337,2590,2591],{"class":2339,"line":2376},[2337,2592,2593],{"class":2347},"        {\n",[2337,2595,2596,2599,2601,2604],{"class":2339,"line":2382},[2337,2597,2598],{"class":2465},"            \"id\"",[2337,2600,2407],{"class":2347},[2337,2602,2603],{"class":2465},"1",[2337,2605,2606],{"class":2347},",\n",[2337,2608,2609,2612,2614,2617],{"class":2339,"line":2388},[2337,2610,2611],{"class":2465},"            \"title\"",[2337,2613,2407],{"class":2347},[2337,2615,2616],{"class":2410},"\"An Article\"",[2337,2618,2606],{"class":2347},[2337,2620,2621,2624,2626],{"class":2339,"line":2396},[2337,2622,2623],{"class":2465},"            \"metadata_color_json\"",[2337,2625,2407],{"class":2347},[2337,2627,2628],{"class":2410},"\"blue\"\n",[2337,2630,2631],{"class":2339,"line":2417},[2337,2632,2420],{"class":2347},[2337,2634,2635],{"class":2339,"line":2423},[2337,2636,2637],{"class":2347},"    ]\n",[2337,2639,2640],{"class":2339,"line":2429},[2337,2641,2432],{"class":2347},[1999,2643,2645],{"className":2571,"code":2644,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"articles\": [\n            {\n                \"id\": 1,\n                \"title\": \"An Article\",\n                \"metadata_func\": { \"json\": \"blue\" }\n            }\n        ]\n    }\n}\n",[1866,2646,2647,2651,2658,2665,2670,2681,2692,2711,2716,2721,2726],{"__ignoreMap":24},[2337,2648,2649],{"class":2339,"line":2340},[2337,2650,2580],{"class":2347},[2337,2652,2653,2655],{"class":2339,"line":2367},[2337,2654,2585],{"class":2465},[2337,2656,2657],{"class":2347},": {\n",[2337,2659,2660,2663],{"class":2339,"line":2376},[2337,2661,2662],{"class":2465},"        \"articles\"",[2337,2664,2588],{"class":2347},[2337,2666,2667],{"class":2339,"line":2382},[2337,2668,2669],{"class":2347},"            {\n",[2337,2671,2672,2675,2677,2679],{"class":2339,"line":2388},[2337,2673,2674],{"class":2465},"                \"id\"",[2337,2676,2407],{"class":2347},[2337,2678,2603],{"class":2465},[2337,2680,2606],{"class":2347},[2337,2682,2683,2686,2688,2690],{"class":2339,"line":2396},[2337,2684,2685],{"class":2465},"                \"title\"",[2337,2687,2407],{"class":2347},[2337,2689,2616],{"class":2410},[2337,2691,2606],{"class":2347},[2337,2693,2694,2697,2700,2703,2705,2708],{"class":2339,"line":2417},[2337,2695,2696],{"class":2465},"                \"metadata_func\"",[2337,2698,2699],{"class":2347},": { ",[2337,2701,2702],{"class":2465},"\"json\"",[2337,2704,2407],{"class":2347},[2337,2706,2707],{"class":2410},"\"blue\"",[2337,2709,2710],{"class":2347}," }\n",[2337,2712,2713],{"class":2339,"line":2423},[2337,2714,2715],{"class":2347},"            }\n",[2337,2717,2718],{"class":2339,"line":2429},[2337,2719,2720],{"class":2347},"        ]\n",[2337,2722,2724],{"class":2339,"line":2723},10,[2337,2725,2426],{"class":2347},[2337,2727,2729],{"class":2339,"line":2728},11,[2337,2730,2432],{"class":2347},[2100,2732,2734],{"id":2733},"multiple-paths","Multiple Paths",[1852,2736,2737,2738,2740],{},"Extract multiple values from the same JSON field in a single request. In GraphQL, use field aliases on the ",[1866,2739,2199],{}," sub-field to distinguish each extraction.",[2326,2742,2743,2755,2853],{},[1999,2744,2746],{"className":2330,"code":2745,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles?fields=id,json(metadata, color),json(metadata, settings.theme),json(metadata, tags[0])\n",[1866,2747,2748],{"__ignoreMap":24},[2337,2749,2750,2752],{"class":2339,"line":2340},[2337,2751,2344],{"class":2343},[2337,2753,2754],{"class":2347}," /items/articles?fields=id,json(metadata, color),json(metadata, settings.theme),json(metadata, tags[0])\n",[1999,2756,2758],{"className":2351,"code":2757,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles {\n        id\n        metadata_func {\n            color: json(path: \"color\")\n            theme: json(path: \"settings.theme\")\n            firstTag: json(path: \"tags[0]\")\n        }\n    }\n}\n",[1866,2759,2760,2766,2772,2776,2782,2801,2821,2841,2845,2849],{"__ignoreMap":24},[2337,2761,2762,2764],{"class":2339,"line":2340},[2337,2763,2361],{"class":2343},[2337,2765,2364],{"class":2347},[2337,2767,2768,2770],{"class":2339,"line":2367},[2337,2769,2371],{"class":2370},[2337,2771,2364],{"class":2347},[2337,2773,2774],{"class":2339,"line":2376},[2337,2775,2379],{"class":2370},[2337,2777,2778,2780],{"class":2339,"line":2382},[2337,2779,2391],{"class":2370},[2337,2781,2364],{"class":2347},[2337,2783,2784,2787,2789,2791,2793,2795,2797,2799],{"class":2339,"line":2388},[2337,2785,2786],{"class":2410},"            color",[2337,2788,2407],{"class":2347},[2337,2790,2199],{"class":2370},[2337,2792,2402],{"class":2347},[2337,2794,2189],{"class":2370},[2337,2796,2407],{"class":2347},[2337,2798,2411],{"class":2410},[2337,2800,2414],{"class":2347},[2337,2802,2803,2806,2808,2810,2812,2814,2816,2819],{"class":2339,"line":2396},[2337,2804,2805],{"class":2410},"            theme",[2337,2807,2407],{"class":2347},[2337,2809,2199],{"class":2370},[2337,2811,2402],{"class":2347},[2337,2813,2189],{"class":2370},[2337,2815,2407],{"class":2347},[2337,2817,2818],{"class":2410},"\"settings.theme\"",[2337,2820,2414],{"class":2347},[2337,2822,2823,2826,2828,2830,2832,2834,2836,2839],{"class":2339,"line":2417},[2337,2824,2825],{"class":2410},"            firstTag",[2337,2827,2407],{"class":2347},[2337,2829,2199],{"class":2370},[2337,2831,2402],{"class":2347},[2337,2833,2189],{"class":2370},[2337,2835,2407],{"class":2347},[2337,2837,2838],{"class":2410},"\"tags[0]\"",[2337,2840,2414],{"class":2347},[2337,2842,2843],{"class":2339,"line":2423},[2337,2844,2420],{"class":2347},[2337,2846,2847],{"class":2339,"line":2429},[2337,2848,2426],{"class":2347},[2337,2850,2851],{"class":2339,"line":2723},[2337,2852,2432],{"class":2347},[1999,2854,2856],{"className":2435,"code":2855,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItems('articles', {\n        fields: [\n            'id',\n            'json(metadata, color)',\n            'json(metadata, settings.theme)',\n            'json(metadata, tags[0])',\n        ],\n    })\n);\n",[1866,2857,2858,2870,2894,2898,2914,2924,2929,2936,2943,2950,2957,2962,2967],{"__ignoreMap":24},[2337,2859,2860,2862,2864,2866,2868],{"class":2339,"line":2340},[2337,2861,2445],{"class":2343},[2337,2863,2448],{"class":2347},[2337,2865,2451],{"class":2343},[2337,2867,2454],{"class":2410},[2337,2869,2457],{"class":2347},[2337,2871,2872,2874,2876,2878,2880,2882,2884,2886,2888,2890,2892],{"class":2339,"line":2367},[2337,2873,2462],{"class":2343},[2337,2875,2466],{"class":2465},[2337,2877,2469],{"class":2343},[2337,2879,2473],{"class":2472},[2337,2881,2402],{"class":2347},[2337,2883,2478],{"class":2410},[2337,2885,2481],{"class":2347},[2337,2887,2484],{"class":2472},[2337,2889,2402],{"class":2347},[2337,2891,2489],{"class":2472},[2337,2893,2492],{"class":2347},[2337,2895,2896],{"class":2339,"line":2376},[2337,2897,2498],{"emptyLinePlaceholder":2497},[2337,2899,2900,2902,2904,2906,2908,2910,2912],{"class":2339,"line":2382},[2337,2901,2462],{"class":2343},[2337,2903,2505],{"class":2465},[2337,2905,2469],{"class":2343},[2337,2907,2510],{"class":2343},[2337,2909,2513],{"class":2347},[2337,2911,2516],{"class":2472},[2337,2913,2519],{"class":2347},[2337,2915,2916,2918,2920,2922],{"class":2339,"line":2388},[2337,2917,2524],{"class":2472},[2337,2919,2402],{"class":2347},[2337,2921,2529],{"class":2410},[2337,2923,2532],{"class":2347},[2337,2925,2926],{"class":2339,"line":2396},[2337,2927,2928],{"class":2347},"        fields: [\n",[2337,2930,2931,2934],{"class":2339,"line":2417},[2337,2932,2933],{"class":2410},"            'id'",[2337,2935,2606],{"class":2347},[2337,2937,2938,2941],{"class":2339,"line":2423},[2337,2939,2940],{"class":2410},"            'json(metadata, color)'",[2337,2942,2606],{"class":2347},[2337,2944,2945,2948],{"class":2339,"line":2429},[2337,2946,2947],{"class":2410},"            'json(metadata, settings.theme)'",[2337,2949,2606],{"class":2347},[2337,2951,2952,2955],{"class":2339,"line":2723},[2337,2953,2954],{"class":2410},"            'json(metadata, tags[0])'",[2337,2956,2606],{"class":2347},[2337,2958,2959],{"class":2339,"line":2728},[2337,2960,2961],{"class":2347},"        ],\n",[2337,2963,2965],{"class":2339,"line":2964},12,[2337,2966,2558],{"class":2347},[2337,2968,2970],{"class":2339,"line":2969},13,[2337,2971,2563],{"class":2347},[1852,2973,2566],{},[2326,2975,2976,3049],{},[1999,2977,2979],{"className":2571,"code":2978,"filename":2573,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"metadata_color_json\": \"blue\",\n            \"metadata_settings_theme_json\": \"dark\",\n            \"metadata_tags_0_json\": \"featured\"\n        }\n    ]\n}\n",[1866,2980,2981,2985,2991,2995,3005,3015,3027,3037,3041,3045],{"__ignoreMap":24},[2337,2982,2983],{"class":2339,"line":2340},[2337,2984,2580],{"class":2347},[2337,2986,2987,2989],{"class":2339,"line":2367},[2337,2988,2585],{"class":2465},[2337,2990,2588],{"class":2347},[2337,2992,2993],{"class":2339,"line":2376},[2337,2994,2593],{"class":2347},[2337,2996,2997,2999,3001,3003],{"class":2339,"line":2382},[2337,2998,2598],{"class":2465},[2337,3000,2407],{"class":2347},[2337,3002,2603],{"class":2465},[2337,3004,2606],{"class":2347},[2337,3006,3007,3009,3011,3013],{"class":2339,"line":2388},[2337,3008,2623],{"class":2465},[2337,3010,2407],{"class":2347},[2337,3012,2707],{"class":2410},[2337,3014,2606],{"class":2347},[2337,3016,3017,3020,3022,3025],{"class":2339,"line":2396},[2337,3018,3019],{"class":2465},"            \"metadata_settings_theme_json\"",[2337,3021,2407],{"class":2347},[2337,3023,3024],{"class":2410},"\"dark\"",[2337,3026,2606],{"class":2347},[2337,3028,3029,3032,3034],{"class":2339,"line":2417},[2337,3030,3031],{"class":2465},"            \"metadata_tags_0_json\"",[2337,3033,2407],{"class":2347},[2337,3035,3036],{"class":2410},"\"featured\"\n",[2337,3038,3039],{"class":2339,"line":2423},[2337,3040,2420],{"class":2347},[2337,3042,3043],{"class":2339,"line":2429},[2337,3044,2637],{"class":2347},[2337,3046,3047],{"class":2339,"line":2723},[2337,3048,2432],{"class":2347},[1999,3050,3052],{"className":2571,"code":3051,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"articles\": [\n            {\n                \"id\": 1,\n                \"metadata_func\": {\n                    \"color\": \"blue\",\n                    \"theme\": \"dark\",\n                    \"firstTag\": \"featured\"\n                }\n            }\n        ]\n    }\n}\n",[1866,3053,3054,3058,3064,3070,3074,3084,3090,3101,3112,3121,3126,3130,3134,3138],{"__ignoreMap":24},[2337,3055,3056],{"class":2339,"line":2340},[2337,3057,2580],{"class":2347},[2337,3059,3060,3062],{"class":2339,"line":2367},[2337,3061,2585],{"class":2465},[2337,3063,2657],{"class":2347},[2337,3065,3066,3068],{"class":2339,"line":2376},[2337,3067,2662],{"class":2465},[2337,3069,2588],{"class":2347},[2337,3071,3072],{"class":2339,"line":2382},[2337,3073,2669],{"class":2347},[2337,3075,3076,3078,3080,3082],{"class":2339,"line":2388},[2337,3077,2674],{"class":2465},[2337,3079,2407],{"class":2347},[2337,3081,2603],{"class":2465},[2337,3083,2606],{"class":2347},[2337,3085,3086,3088],{"class":2339,"line":2396},[2337,3087,2696],{"class":2465},[2337,3089,2657],{"class":2347},[2337,3091,3092,3095,3097,3099],{"class":2339,"line":2417},[2337,3093,3094],{"class":2465},"                    \"color\"",[2337,3096,2407],{"class":2347},[2337,3098,2707],{"class":2410},[2337,3100,2606],{"class":2347},[2337,3102,3103,3106,3108,3110],{"class":2339,"line":2423},[2337,3104,3105],{"class":2465},"                    \"theme\"",[2337,3107,2407],{"class":2347},[2337,3109,3024],{"class":2410},[2337,3111,2606],{"class":2347},[2337,3113,3114,3117,3119],{"class":2339,"line":2429},[2337,3115,3116],{"class":2465},"                    \"firstTag\"",[2337,3118,2407],{"class":2347},[2337,3120,3036],{"class":2410},[2337,3122,3123],{"class":2339,"line":2723},[2337,3124,3125],{"class":2347},"                }\n",[2337,3127,3128],{"class":2339,"line":2728},[2337,3129,2715],{"class":2347},[2337,3131,3132],{"class":2339,"line":2964},[2337,3133,2720],{"class":2347},[2337,3135,3136],{"class":2339,"line":2969},[2337,3137,2426],{"class":2347},[2337,3139,3141],{"class":2339,"line":3140},14,[2337,3142,2432],{"class":2347},[2100,3144,3146],{"id":3145},"extracting-an-object-or-array","Extracting an Object or Array",[1852,3148,3149],{},"When the path points to an object or array rather than a scalar, the full value is returned as parsed JSON.",[2140,3151,3152],{"icon":2142,"color":2143},[1852,3153,3154,3157],{},[1863,3155,3156],{},"Non-Scalar Paths in Sort and Filter","\nSorting or filtering by a path that resolves to an object or array can produce unexpected results. The database compares the serialized form, which depends on dialect-specific JSON ordering and formatting. Use paths that resolve to a scalar value (string, number, boolean) for reliable sorting and filtering.",[2326,3159,3160,3172,3251],{},[1999,3161,3163],{"className":2330,"code":3162,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles?fields=id,json(metadata, dimensions),json(metadata, tags)\n",[1866,3164,3165],{"__ignoreMap":24},[2337,3166,3167,3169],{"class":2339,"line":2340},[2337,3168,2344],{"class":2343},[2337,3170,3171],{"class":2347}," /items/articles?fields=id,json(metadata, dimensions),json(metadata, tags)\n",[1999,3173,3175],{"className":2351,"code":3174,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles {\n        id\n        metadata_func {\n            dimensions: json(path: \"dimensions\")\n            tags: json(path: \"tags\")\n        }\n    }\n}\n",[1866,3176,3177,3183,3189,3193,3199,3219,3239,3243,3247],{"__ignoreMap":24},[2337,3178,3179,3181],{"class":2339,"line":2340},[2337,3180,2361],{"class":2343},[2337,3182,2364],{"class":2347},[2337,3184,3185,3187],{"class":2339,"line":2367},[2337,3186,2371],{"class":2370},[2337,3188,2364],{"class":2347},[2337,3190,3191],{"class":2339,"line":2376},[2337,3192,2379],{"class":2370},[2337,3194,3195,3197],{"class":2339,"line":2382},[2337,3196,2391],{"class":2370},[2337,3198,2364],{"class":2347},[2337,3200,3201,3204,3206,3208,3210,3212,3214,3217],{"class":2339,"line":2388},[2337,3202,3203],{"class":2410},"            dimensions",[2337,3205,2407],{"class":2347},[2337,3207,2199],{"class":2370},[2337,3209,2402],{"class":2347},[2337,3211,2189],{"class":2370},[2337,3213,2407],{"class":2347},[2337,3215,3216],{"class":2410},"\"dimensions\"",[2337,3218,2414],{"class":2347},[2337,3220,3221,3224,3226,3228,3230,3232,3234,3237],{"class":2339,"line":2396},[2337,3222,3223],{"class":2410},"            tags",[2337,3225,2407],{"class":2347},[2337,3227,2199],{"class":2370},[2337,3229,2402],{"class":2347},[2337,3231,2189],{"class":2370},[2337,3233,2407],{"class":2347},[2337,3235,3236],{"class":2410},"\"tags\"",[2337,3238,2414],{"class":2347},[2337,3240,3241],{"class":2339,"line":2417},[2337,3242,2420],{"class":2347},[2337,3244,3245],{"class":2339,"line":2423},[2337,3246,2426],{"class":2347},[2337,3248,3249],{"class":2339,"line":2429},[2337,3250,2432],{"class":2347},[1999,3252,3254],{"className":2435,"code":3253,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItems('articles', {\n        fields: ['id', 'json(metadata, dimensions)', 'json(metadata, tags)'],\n    })\n);\n",[1866,3255,3256,3268,3292,3296,3312,3322,3340,3344],{"__ignoreMap":24},[2337,3257,3258,3260,3262,3264,3266],{"class":2339,"line":2340},[2337,3259,2445],{"class":2343},[2337,3261,2448],{"class":2347},[2337,3263,2451],{"class":2343},[2337,3265,2454],{"class":2410},[2337,3267,2457],{"class":2347},[2337,3269,3270,3272,3274,3276,3278,3280,3282,3284,3286,3288,3290],{"class":2339,"line":2367},[2337,3271,2462],{"class":2343},[2337,3273,2466],{"class":2465},[2337,3275,2469],{"class":2343},[2337,3277,2473],{"class":2472},[2337,3279,2402],{"class":2347},[2337,3281,2478],{"class":2410},[2337,3283,2481],{"class":2347},[2337,3285,2484],{"class":2472},[2337,3287,2402],{"class":2347},[2337,3289,2489],{"class":2472},[2337,3291,2492],{"class":2347},[2337,3293,3294],{"class":2339,"line":2376},[2337,3295,2498],{"emptyLinePlaceholder":2497},[2337,3297,3298,3300,3302,3304,3306,3308,3310],{"class":2339,"line":2382},[2337,3299,2462],{"class":2343},[2337,3301,2505],{"class":2465},[2337,3303,2469],{"class":2343},[2337,3305,2510],{"class":2343},[2337,3307,2513],{"class":2347},[2337,3309,2516],{"class":2472},[2337,3311,2519],{"class":2347},[2337,3313,3314,3316,3318,3320],{"class":2339,"line":2388},[2337,3315,2524],{"class":2472},[2337,3317,2402],{"class":2347},[2337,3319,2529],{"class":2410},[2337,3321,2532],{"class":2347},[2337,3323,3324,3326,3328,3330,3333,3335,3338],{"class":2339,"line":2396},[2337,3325,2537],{"class":2347},[2337,3327,2540],{"class":2410},[2337,3329,1874],{"class":2347},[2337,3331,3332],{"class":2410},"'json(metadata, dimensions)'",[2337,3334,1874],{"class":2347},[2337,3336,3337],{"class":2410},"'json(metadata, tags)'",[2337,3339,2553],{"class":2347},[2337,3341,3342],{"class":2339,"line":2417},[2337,3343,2558],{"class":2347},[2337,3345,3346],{"class":2339,"line":2423},[2337,3347,2563],{"class":2347},[1852,3349,2566],{},[2326,3351,3352,3440],{},[1999,3353,3355],{"className":2571,"code":3354,"filename":2573,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"metadata_dimensions_json\": { \"width\": 100, \"height\": 50 },\n            \"metadata_tags_json\": [\"featured\", \"new\"]\n        }\n    ]\n}\n",[1866,3356,3357,3361,3367,3371,3381,3409,3428,3432,3436],{"__ignoreMap":24},[2337,3358,3359],{"class":2339,"line":2340},[2337,3360,2580],{"class":2347},[2337,3362,3363,3365],{"class":2339,"line":2367},[2337,3364,2585],{"class":2465},[2337,3366,2588],{"class":2347},[2337,3368,3369],{"class":2339,"line":2376},[2337,3370,2593],{"class":2347},[2337,3372,3373,3375,3377,3379],{"class":2339,"line":2382},[2337,3374,2598],{"class":2465},[2337,3376,2407],{"class":2347},[2337,3378,2603],{"class":2465},[2337,3380,2606],{"class":2347},[2337,3382,3383,3386,3388,3391,3393,3396,3398,3401,3403,3406],{"class":2339,"line":2388},[2337,3384,3385],{"class":2465},"            \"metadata_dimensions_json\"",[2337,3387,2699],{"class":2347},[2337,3389,3390],{"class":2465},"\"width\"",[2337,3392,2407],{"class":2347},[2337,3394,3395],{"class":2465},"100",[2337,3397,1874],{"class":2347},[2337,3399,3400],{"class":2465},"\"height\"",[2337,3402,2407],{"class":2347},[2337,3404,3405],{"class":2465},"50",[2337,3407,3408],{"class":2347}," },\n",[2337,3410,3411,3414,3417,3420,3422,3425],{"class":2339,"line":2396},[2337,3412,3413],{"class":2465},"            \"metadata_tags_json\"",[2337,3415,3416],{"class":2347},": [",[2337,3418,3419],{"class":2410},"\"featured\"",[2337,3421,1874],{"class":2347},[2337,3423,3424],{"class":2410},"\"new\"",[2337,3426,3427],{"class":2347},"]\n",[2337,3429,3430],{"class":2339,"line":2417},[2337,3431,2420],{"class":2347},[2337,3433,3434],{"class":2339,"line":2423},[2337,3435,2637],{"class":2347},[2337,3437,3438],{"class":2339,"line":2429},[2337,3439,2432],{"class":2347},[1999,3441,3443],{"className":2571,"code":3442,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"articles\": [\n            {\n                \"id\": 1,\n                \"metadata_func\": {\n                    \"dimensions\": { \"width\": 100, \"height\": 50 },\n                    \"tags\": [\"featured\", \"new\"]\n                }\n            }\n        ]\n    }\n}\n",[1866,3444,3445,3449,3455,3461,3465,3475,3481,3504,3519,3523,3527,3531,3535],{"__ignoreMap":24},[2337,3446,3447],{"class":2339,"line":2340},[2337,3448,2580],{"class":2347},[2337,3450,3451,3453],{"class":2339,"line":2367},[2337,3452,2585],{"class":2465},[2337,3454,2657],{"class":2347},[2337,3456,3457,3459],{"class":2339,"line":2376},[2337,3458,2662],{"class":2465},[2337,3460,2588],{"class":2347},[2337,3462,3463],{"class":2339,"line":2382},[2337,3464,2669],{"class":2347},[2337,3466,3467,3469,3471,3473],{"class":2339,"line":2388},[2337,3468,2674],{"class":2465},[2337,3470,2407],{"class":2347},[2337,3472,2603],{"class":2465},[2337,3474,2606],{"class":2347},[2337,3476,3477,3479],{"class":2339,"line":2396},[2337,3478,2696],{"class":2465},[2337,3480,2657],{"class":2347},[2337,3482,3483,3486,3488,3490,3492,3494,3496,3498,3500,3502],{"class":2339,"line":2417},[2337,3484,3485],{"class":2465},"                    \"dimensions\"",[2337,3487,2699],{"class":2347},[2337,3489,3390],{"class":2465},[2337,3491,2407],{"class":2347},[2337,3493,3395],{"class":2465},[2337,3495,1874],{"class":2347},[2337,3497,3400],{"class":2465},[2337,3499,2407],{"class":2347},[2337,3501,3405],{"class":2465},[2337,3503,3408],{"class":2347},[2337,3505,3506,3509,3511,3513,3515,3517],{"class":2339,"line":2423},[2337,3507,3508],{"class":2465},"                    \"tags\"",[2337,3510,3416],{"class":2347},[2337,3512,3419],{"class":2410},[2337,3514,1874],{"class":2347},[2337,3516,3424],{"class":2410},[2337,3518,3427],{"class":2347},[2337,3520,3521],{"class":2339,"line":2429},[2337,3522,3125],{"class":2347},[2337,3524,3525],{"class":2339,"line":2723},[2337,3526,2715],{"class":2347},[2337,3528,3529],{"class":2339,"line":2728},[2337,3530,2720],{"class":2347},[2337,3532,3533],{"class":2339,"line":2964},[2337,3534,2426],{"class":2347},[2337,3536,3537],{"class":2339,"line":2969},[2337,3538,2432],{"class":2347},[2100,3540,3542],{"id":3541},"relational-queries","Relational Queries",[1852,3544,3545,3547],{},[1866,3546,1868],{}," can traverse relational fields to extract JSON values from related items. The relational path goes inside the first argument, before the JSON field name.",[3549,3550,3552],"h4",{"id":3551},"many-to-one-m2o","Many-to-One (M2O)",[1852,3554,3555,3556],{},"Syntax: ",[1866,3557,3558],{},"json(relation.json_field, path)",[1852,3560,3561,3562,3564],{},"The extracted value is returned nested under the relational key in the response, alongside any other requested fields from that relation. Multiple ",[1866,3563,1868],{}," extractions from the same relation are grouped under the same relational key.",[2326,3566,3567,3579,3658],{},[1999,3568,3570],{"className":2330,"code":3569,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles?fields=id,title,category_id.name,json(category_id.metadata, color)\n",[1866,3571,3572],{"__ignoreMap":24},[2337,3573,3574,3576],{"class":2339,"line":2340},[2337,3575,2344],{"class":2343},[2337,3577,3578],{"class":2347}," /items/articles?fields=id,title,category_id.name,json(category_id.metadata, color)\n",[1999,3580,3582],{"className":2351,"code":3581,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles {\n        id\n        title\n        category_id {\n            name\n            metadata_func {\n                color: json(path: \"color\")\n            }\n        }\n    }\n}\n",[1866,3583,3584,3590,3596,3600,3604,3611,3616,3623,3642,3646,3650,3654],{"__ignoreMap":24},[2337,3585,3586,3588],{"class":2339,"line":2340},[2337,3587,2361],{"class":2343},[2337,3589,2364],{"class":2347},[2337,3591,3592,3594],{"class":2339,"line":2367},[2337,3593,2371],{"class":2370},[2337,3595,2364],{"class":2347},[2337,3597,3598],{"class":2339,"line":2376},[2337,3599,2379],{"class":2370},[2337,3601,3602],{"class":2339,"line":2382},[2337,3603,2385],{"class":2370},[2337,3605,3606,3609],{"class":2339,"line":2388},[2337,3607,3608],{"class":2370},"        category_id",[2337,3610,2364],{"class":2347},[2337,3612,3613],{"class":2339,"line":2396},[2337,3614,3615],{"class":2370},"            name\n",[2337,3617,3618,3621],{"class":2339,"line":2417},[2337,3619,3620],{"class":2370},"            metadata_func",[2337,3622,2364],{"class":2347},[2337,3624,3625,3628,3630,3632,3634,3636,3638,3640],{"class":2339,"line":2423},[2337,3626,3627],{"class":2410},"                color",[2337,3629,2407],{"class":2347},[2337,3631,2199],{"class":2370},[2337,3633,2402],{"class":2347},[2337,3635,2189],{"class":2370},[2337,3637,2407],{"class":2347},[2337,3639,2411],{"class":2410},[2337,3641,2414],{"class":2347},[2337,3643,3644],{"class":2339,"line":2429},[2337,3645,2715],{"class":2347},[2337,3647,3648],{"class":2339,"line":2723},[2337,3649,2420],{"class":2347},[2337,3651,3652],{"class":2339,"line":2728},[2337,3653,2426],{"class":2347},[2337,3655,3656],{"class":2339,"line":2964},[2337,3657,2432],{"class":2347},[1999,3659,3661],{"className":2435,"code":3660,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItems('articles', {\n        fields: ['id', 'title', { category_id: ['name', 'json(metadata, color)'] }],\n    })\n);\n",[1866,3662,3663,3675,3699,3703,3719,3729,3752,3756],{"__ignoreMap":24},[2337,3664,3665,3667,3669,3671,3673],{"class":2339,"line":2340},[2337,3666,2445],{"class":2343},[2337,3668,2448],{"class":2347},[2337,3670,2451],{"class":2343},[2337,3672,2454],{"class":2410},[2337,3674,2457],{"class":2347},[2337,3676,3677,3679,3681,3683,3685,3687,3689,3691,3693,3695,3697],{"class":2339,"line":2367},[2337,3678,2462],{"class":2343},[2337,3680,2466],{"class":2465},[2337,3682,2469],{"class":2343},[2337,3684,2473],{"class":2472},[2337,3686,2402],{"class":2347},[2337,3688,2478],{"class":2410},[2337,3690,2481],{"class":2347},[2337,3692,2484],{"class":2472},[2337,3694,2402],{"class":2347},[2337,3696,2489],{"class":2472},[2337,3698,2492],{"class":2347},[2337,3700,3701],{"class":2339,"line":2376},[2337,3702,2498],{"emptyLinePlaceholder":2497},[2337,3704,3705,3707,3709,3711,3713,3715,3717],{"class":2339,"line":2382},[2337,3706,2462],{"class":2343},[2337,3708,2505],{"class":2465},[2337,3710,2469],{"class":2343},[2337,3712,2510],{"class":2343},[2337,3714,2513],{"class":2347},[2337,3716,2516],{"class":2472},[2337,3718,2519],{"class":2347},[2337,3720,3721,3723,3725,3727],{"class":2339,"line":2388},[2337,3722,2524],{"class":2472},[2337,3724,2402],{"class":2347},[2337,3726,2529],{"class":2410},[2337,3728,2532],{"class":2347},[2337,3730,3731,3733,3735,3737,3739,3742,3745,3747,3749],{"class":2339,"line":2396},[2337,3732,2537],{"class":2347},[2337,3734,2540],{"class":2410},[2337,3736,1874],{"class":2347},[2337,3738,2545],{"class":2410},[2337,3740,3741],{"class":2347},", { category_id: [",[2337,3743,3744],{"class":2410},"'name'",[2337,3746,1874],{"class":2347},[2337,3748,2550],{"class":2410},[2337,3750,3751],{"class":2347},"] }],\n",[2337,3753,3754],{"class":2339,"line":2417},[2337,3755,2558],{"class":2347},[2337,3757,3758],{"class":2339,"line":2423},[2337,3759,2563],{"class":2347},[1852,3761,2566],{},[2326,3763,3764,3847],{},[1999,3765,3767],{"className":2571,"code":3766,"filename":2573,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"title\": \"An Article\",\n            \"category_id\": {\n                \"name\": \"News\",\n                \"metadata_color_json\": \"blue\"\n            }\n        }\n    ]\n}\n",[1866,3768,3769,3773,3779,3783,3793,3803,3810,3822,3831,3835,3839,3843],{"__ignoreMap":24},[2337,3770,3771],{"class":2339,"line":2340},[2337,3772,2580],{"class":2347},[2337,3774,3775,3777],{"class":2339,"line":2367},[2337,3776,2585],{"class":2465},[2337,3778,2588],{"class":2347},[2337,3780,3781],{"class":2339,"line":2376},[2337,3782,2593],{"class":2347},[2337,3784,3785,3787,3789,3791],{"class":2339,"line":2382},[2337,3786,2598],{"class":2465},[2337,3788,2407],{"class":2347},[2337,3790,2603],{"class":2465},[2337,3792,2606],{"class":2347},[2337,3794,3795,3797,3799,3801],{"class":2339,"line":2388},[2337,3796,2611],{"class":2465},[2337,3798,2407],{"class":2347},[2337,3800,2616],{"class":2410},[2337,3802,2606],{"class":2347},[2337,3804,3805,3808],{"class":2339,"line":2396},[2337,3806,3807],{"class":2465},"            \"category_id\"",[2337,3809,2657],{"class":2347},[2337,3811,3812,3815,3817,3820],{"class":2339,"line":2417},[2337,3813,3814],{"class":2465},"                \"name\"",[2337,3816,2407],{"class":2347},[2337,3818,3819],{"class":2410},"\"News\"",[2337,3821,2606],{"class":2347},[2337,3823,3824,3827,3829],{"class":2339,"line":2423},[2337,3825,3826],{"class":2465},"                \"metadata_color_json\"",[2337,3828,2407],{"class":2347},[2337,3830,2628],{"class":2410},[2337,3832,3833],{"class":2339,"line":2429},[2337,3834,2715],{"class":2347},[2337,3836,3837],{"class":2339,"line":2723},[2337,3838,2420],{"class":2347},[2337,3840,3841],{"class":2339,"line":2728},[2337,3842,2637],{"class":2347},[2337,3844,3845],{"class":2339,"line":2964},[2337,3846,2432],{"class":2347},[1999,3848,3850],{"className":2571,"code":3849,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"articles\": [\n            {\n                \"id\": 1,\n                \"title\": \"An Article\",\n                \"category_id\": {\n                    \"name\": \"News\",\n                    \"metadata_func\": { \"color\": \"blue\" }\n                }\n            }\n        ]\n    }\n}\n",[1866,3851,3852,3856,3862,3868,3872,3882,3892,3899,3910,3925,3929,3933,3937,3941],{"__ignoreMap":24},[2337,3853,3854],{"class":2339,"line":2340},[2337,3855,2580],{"class":2347},[2337,3857,3858,3860],{"class":2339,"line":2367},[2337,3859,2585],{"class":2465},[2337,3861,2657],{"class":2347},[2337,3863,3864,3866],{"class":2339,"line":2376},[2337,3865,2662],{"class":2465},[2337,3867,2588],{"class":2347},[2337,3869,3870],{"class":2339,"line":2382},[2337,3871,2669],{"class":2347},[2337,3873,3874,3876,3878,3880],{"class":2339,"line":2388},[2337,3875,2674],{"class":2465},[2337,3877,2407],{"class":2347},[2337,3879,2603],{"class":2465},[2337,3881,2606],{"class":2347},[2337,3883,3884,3886,3888,3890],{"class":2339,"line":2396},[2337,3885,2685],{"class":2465},[2337,3887,2407],{"class":2347},[2337,3889,2616],{"class":2410},[2337,3891,2606],{"class":2347},[2337,3893,3894,3897],{"class":2339,"line":2417},[2337,3895,3896],{"class":2465},"                \"category_id\"",[2337,3898,2657],{"class":2347},[2337,3900,3901,3904,3906,3908],{"class":2339,"line":2423},[2337,3902,3903],{"class":2465},"                    \"name\"",[2337,3905,2407],{"class":2347},[2337,3907,3819],{"class":2410},[2337,3909,2606],{"class":2347},[2337,3911,3912,3915,3917,3919,3921,3923],{"class":2339,"line":2429},[2337,3913,3914],{"class":2465},"                    \"metadata_func\"",[2337,3916,2699],{"class":2347},[2337,3918,2411],{"class":2465},[2337,3920,2407],{"class":2347},[2337,3922,2707],{"class":2410},[2337,3924,2710],{"class":2347},[2337,3926,3927],{"class":2339,"line":2723},[2337,3928,3125],{"class":2347},[2337,3930,3931],{"class":2339,"line":2728},[2337,3932,2715],{"class":2347},[2337,3934,3935],{"class":2339,"line":2964},[2337,3936,2720],{"class":2347},[2337,3938,3939],{"class":2339,"line":2969},[2337,3940,2426],{"class":2347},[2337,3942,3943],{"class":2339,"line":3140},[2337,3944,2432],{"class":2347},[3549,3946,3948],{"id":3947},"one-to-many-o2m","One-to-Many (O2M)",[1852,3950,3951],{},"For O2M relations, each related item returns its own extracted value. The response contains an array of objects, each with the extracted key.",[2326,3953,3954,3966,4044],{},[1999,3955,3957],{"className":2330,"code":3956,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles/1?fields=id,json(comments.data, type)\n",[1866,3958,3959],{"__ignoreMap":24},[2337,3960,3961,3963],{"class":2339,"line":2340},[2337,3962,2344],{"class":2343},[2337,3964,3965],{"class":2347}," /items/articles/1?fields=id,json(comments.data, type)\n",[1999,3967,3969],{"className":2351,"code":3968,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles_by_id(id: 1) {\n        id\n        comments {\n            data_func {\n                json(path: \"type\")\n            }\n        }\n    }\n}\n",[1866,3970,3971,3977,3994,3998,4005,4012,4028,4032,4036,4040],{"__ignoreMap":24},[2337,3972,3973,3975],{"class":2339,"line":2340},[2337,3974,2361],{"class":2343},[2337,3976,2364],{"class":2347},[2337,3978,3979,3982,3984,3987,3989,3991],{"class":2339,"line":2367},[2337,3980,3981],{"class":2370},"    articles_by_id",[2337,3983,2402],{"class":2347},[2337,3985,3986],{"class":2370},"id",[2337,3988,2407],{"class":2347},[2337,3990,2603],{"class":2465},[2337,3992,3993],{"class":2347},") {\n",[2337,3995,3996],{"class":2339,"line":2376},[2337,3997,2379],{"class":2370},[2337,3999,4000,4003],{"class":2339,"line":2382},[2337,4001,4002],{"class":2370},"        comments",[2337,4004,2364],{"class":2347},[2337,4006,4007,4010],{"class":2339,"line":2388},[2337,4008,4009],{"class":2370},"            data_func",[2337,4011,2364],{"class":2347},[2337,4013,4014,4017,4019,4021,4023,4026],{"class":2339,"line":2396},[2337,4015,4016],{"class":2370},"                json",[2337,4018,2402],{"class":2347},[2337,4020,2189],{"class":2370},[2337,4022,2407],{"class":2347},[2337,4024,4025],{"class":2410},"\"type\"",[2337,4027,2414],{"class":2347},[2337,4029,4030],{"class":2339,"line":2417},[2337,4031,2715],{"class":2347},[2337,4033,4034],{"class":2339,"line":2423},[2337,4035,2420],{"class":2347},[2337,4037,4038],{"class":2339,"line":2429},[2337,4039,2426],{"class":2347},[2337,4041,4042],{"class":2339,"line":2723},[2337,4043,2432],{"class":2347},[1999,4045,4047],{"className":2435,"code":4046,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItem } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItem('articles', 1, {\n        fields: ['id', { comments: ['json(data, type)'] }],\n    })\n);\n",[1866,4048,4049,4062,4086,4090,4106,4121,4135,4139],{"__ignoreMap":24},[2337,4050,4051,4053,4056,4058,4060],{"class":2339,"line":2340},[2337,4052,2445],{"class":2343},[2337,4054,4055],{"class":2347}," { createDirectus, rest, readItem } ",[2337,4057,2451],{"class":2343},[2337,4059,2454],{"class":2410},[2337,4061,2457],{"class":2347},[2337,4063,4064,4066,4068,4070,4072,4074,4076,4078,4080,4082,4084],{"class":2339,"line":2367},[2337,4065,2462],{"class":2343},[2337,4067,2466],{"class":2465},[2337,4069,2469],{"class":2343},[2337,4071,2473],{"class":2472},[2337,4073,2402],{"class":2347},[2337,4075,2478],{"class":2410},[2337,4077,2481],{"class":2347},[2337,4079,2484],{"class":2472},[2337,4081,2402],{"class":2347},[2337,4083,2489],{"class":2472},[2337,4085,2492],{"class":2347},[2337,4087,4088],{"class":2339,"line":2376},[2337,4089,2498],{"emptyLinePlaceholder":2497},[2337,4091,4092,4094,4096,4098,4100,4102,4104],{"class":2339,"line":2382},[2337,4093,2462],{"class":2343},[2337,4095,2505],{"class":2465},[2337,4097,2469],{"class":2343},[2337,4099,2510],{"class":2343},[2337,4101,2513],{"class":2347},[2337,4103,2516],{"class":2472},[2337,4105,2519],{"class":2347},[2337,4107,4108,4111,4113,4115,4117,4119],{"class":2339,"line":2388},[2337,4109,4110],{"class":2472},"    readItem",[2337,4112,2402],{"class":2347},[2337,4114,2529],{"class":2410},[2337,4116,1874],{"class":2347},[2337,4118,2603],{"class":2465},[2337,4120,2532],{"class":2347},[2337,4122,4123,4125,4127,4130,4133],{"class":2339,"line":2396},[2337,4124,2537],{"class":2347},[2337,4126,2540],{"class":2410},[2337,4128,4129],{"class":2347},", { comments: [",[2337,4131,4132],{"class":2410},"'json(data, type)'",[2337,4134,3751],{"class":2347},[2337,4136,4137],{"class":2339,"line":2417},[2337,4138,2558],{"class":2347},[2337,4140,4141],{"class":2339,"line":2423},[2337,4142,2563],{"class":2347},[1852,4144,2566],{},[2326,4146,4147,4220],{},[1999,4148,4150],{"className":2571,"code":4149,"filename":2573,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"id\": 1,\n        \"comments\": [\n            { \"data_type_json\": \"comment\" },\n            { \"data_type_json\": \"review\" }\n        ]\n    }\n}\n",[1866,4151,4152,4156,4162,4173,4180,4195,4208,4212,4216],{"__ignoreMap":24},[2337,4153,4154],{"class":2339,"line":2340},[2337,4155,2580],{"class":2347},[2337,4157,4158,4160],{"class":2339,"line":2367},[2337,4159,2585],{"class":2465},[2337,4161,2657],{"class":2347},[2337,4163,4164,4167,4169,4171],{"class":2339,"line":2376},[2337,4165,4166],{"class":2465},"        \"id\"",[2337,4168,2407],{"class":2347},[2337,4170,2603],{"class":2465},[2337,4172,2606],{"class":2347},[2337,4174,4175,4178],{"class":2339,"line":2382},[2337,4176,4177],{"class":2465},"        \"comments\"",[2337,4179,2588],{"class":2347},[2337,4181,4182,4185,4188,4190,4193],{"class":2339,"line":2388},[2337,4183,4184],{"class":2347},"            { ",[2337,4186,4187],{"class":2465},"\"data_type_json\"",[2337,4189,2407],{"class":2347},[2337,4191,4192],{"class":2410},"\"comment\"",[2337,4194,3408],{"class":2347},[2337,4196,4197,4199,4201,4203,4206],{"class":2339,"line":2396},[2337,4198,4184],{"class":2347},[2337,4200,4187],{"class":2465},[2337,4202,2407],{"class":2347},[2337,4204,4205],{"class":2410},"\"review\"",[2337,4207,2710],{"class":2347},[2337,4209,4210],{"class":2339,"line":2417},[2337,4211,2720],{"class":2347},[2337,4213,4214],{"class":2339,"line":2423},[2337,4215,2426],{"class":2347},[2337,4217,4218],{"class":2339,"line":2429},[2337,4219,2432],{"class":2347},[1999,4221,4223],{"className":2571,"code":4222,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"articles_by_id\": {\n            \"id\": 1,\n            \"comments\": [\n                { \"data_func\": { \"json\": \"comment\" } },\n                { \"data_func\": { \"json\": \"review\" } }\n            ]\n        }\n    }\n}\n",[1866,4224,4225,4229,4235,4242,4252,4259,4278,4295,4300,4304,4308],{"__ignoreMap":24},[2337,4226,4227],{"class":2339,"line":2340},[2337,4228,2580],{"class":2347},[2337,4230,4231,4233],{"class":2339,"line":2367},[2337,4232,2585],{"class":2465},[2337,4234,2657],{"class":2347},[2337,4236,4237,4240],{"class":2339,"line":2376},[2337,4238,4239],{"class":2465},"        \"articles_by_id\"",[2337,4241,2657],{"class":2347},[2337,4243,4244,4246,4248,4250],{"class":2339,"line":2382},[2337,4245,2598],{"class":2465},[2337,4247,2407],{"class":2347},[2337,4249,2603],{"class":2465},[2337,4251,2606],{"class":2347},[2337,4253,4254,4257],{"class":2339,"line":2388},[2337,4255,4256],{"class":2465},"            \"comments\"",[2337,4258,2588],{"class":2347},[2337,4260,4261,4264,4267,4269,4271,4273,4275],{"class":2339,"line":2396},[2337,4262,4263],{"class":2347},"                { ",[2337,4265,4266],{"class":2465},"\"data_func\"",[2337,4268,2699],{"class":2347},[2337,4270,2702],{"class":2465},[2337,4272,2407],{"class":2347},[2337,4274,4192],{"class":2410},[2337,4276,4277],{"class":2347}," } },\n",[2337,4279,4280,4282,4284,4286,4288,4290,4292],{"class":2339,"line":2417},[2337,4281,4263],{"class":2347},[2337,4283,4266],{"class":2465},[2337,4285,2699],{"class":2347},[2337,4287,2702],{"class":2465},[2337,4289,2407],{"class":2347},[2337,4291,4205],{"class":2410},[2337,4293,4294],{"class":2347}," } }\n",[2337,4296,4297],{"class":2339,"line":2423},[2337,4298,4299],{"class":2347},"            ]\n",[2337,4301,4302],{"class":2339,"line":2429},[2337,4303,2420],{"class":2347},[2337,4305,4306],{"class":2339,"line":2723},[2337,4307,2426],{"class":2347},[2337,4309,4310],{"class":2339,"line":2728},[2337,4311,2432],{"class":2347},[3549,4313,4315],{"id":4314},"many-to-any-m2a","Many-to-Any (M2A)",[1852,4317,4318,4319],{},"For M2A relations, use the standard Directus collection scope syntax inside the first argument: ",[1866,4320,4321],{},"json(relation.item:collection_name.json_field, path)",[2326,4323,4324,4336,4440],{},[1999,4325,4327],{"className":2330,"code":4326,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/shapes/1?fields=id,json(children.item:circles.metadata, color)\n",[1866,4328,4329],{"__ignoreMap":24},[2337,4330,4331,4333],{"class":2339,"line":2340},[2337,4332,2344],{"class":2343},[2337,4334,4335],{"class":2347}," /items/shapes/1?fields=id,json(children.item:circles.metadata, color)\n",[1999,4337,4339],{"className":2351,"code":4338,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    shapes_by_id(id: 1) {\n        id\n        children {\n            item {\n                ... on circles {\n                    metadata_func {\n                        json(path: \"color\")\n                    }\n                }\n            }\n        }\n    }\n}\n",[1866,4340,4341,4347,4362,4366,4373,4380,4393,4400,4415,4420,4424,4428,4432,4436],{"__ignoreMap":24},[2337,4342,4343,4345],{"class":2339,"line":2340},[2337,4344,2361],{"class":2343},[2337,4346,2364],{"class":2347},[2337,4348,4349,4352,4354,4356,4358,4360],{"class":2339,"line":2367},[2337,4350,4351],{"class":2370},"    shapes_by_id",[2337,4353,2402],{"class":2347},[2337,4355,3986],{"class":2370},[2337,4357,2407],{"class":2347},[2337,4359,2603],{"class":2465},[2337,4361,3993],{"class":2347},[2337,4363,4364],{"class":2339,"line":2376},[2337,4365,2379],{"class":2370},[2337,4367,4368,4371],{"class":2339,"line":2382},[2337,4369,4370],{"class":2370},"        children",[2337,4372,2364],{"class":2347},[2337,4374,4375,4378],{"class":2339,"line":2388},[2337,4376,4377],{"class":2370},"            item",[2337,4379,2364],{"class":2347},[2337,4381,4382,4385,4388,4391],{"class":2339,"line":2396},[2337,4383,4384],{"class":2343},"                ...",[2337,4386,4387],{"class":2343}," on",[2337,4389,4390],{"class":2465}," circles",[2337,4392,2364],{"class":2347},[2337,4394,4395,4398],{"class":2339,"line":2417},[2337,4396,4397],{"class":2370},"                    metadata_func",[2337,4399,2364],{"class":2347},[2337,4401,4402,4405,4407,4409,4411,4413],{"class":2339,"line":2423},[2337,4403,4404],{"class":2370},"                        json",[2337,4406,2402],{"class":2347},[2337,4408,2189],{"class":2370},[2337,4410,2407],{"class":2347},[2337,4412,2411],{"class":2410},[2337,4414,2414],{"class":2347},[2337,4416,4417],{"class":2339,"line":2429},[2337,4418,4419],{"class":2347},"                    }\n",[2337,4421,4422],{"class":2339,"line":2723},[2337,4423,3125],{"class":2347},[2337,4425,4426],{"class":2339,"line":2728},[2337,4427,2715],{"class":2347},[2337,4429,4430],{"class":2339,"line":2964},[2337,4431,2420],{"class":2347},[2337,4433,4434],{"class":2339,"line":2969},[2337,4435,2426],{"class":2347},[2337,4437,4438],{"class":2339,"line":3140},[2337,4439,2432],{"class":2347},[1999,4441,4443],{"className":2435,"code":4442,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItem } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItem('shapes', 1, {\n        fields: [\n            'id',\n            {\n                children: [\n                    {\n                        item: {\n                            circles: ['json(metadata, color)'],\n                        },\n                    },\n                ],\n            },\n        ],\n    })\n);\n",[1866,4444,4445,4457,4481,4485,4501,4516,4520,4526,4530,4535,4540,4545,4554,4559,4564,4570,4576,4581,4586],{"__ignoreMap":24},[2337,4446,4447,4449,4451,4453,4455],{"class":2339,"line":2340},[2337,4448,2445],{"class":2343},[2337,4450,4055],{"class":2347},[2337,4452,2451],{"class":2343},[2337,4454,2454],{"class":2410},[2337,4456,2457],{"class":2347},[2337,4458,4459,4461,4463,4465,4467,4469,4471,4473,4475,4477,4479],{"class":2339,"line":2367},[2337,4460,2462],{"class":2343},[2337,4462,2466],{"class":2465},[2337,4464,2469],{"class":2343},[2337,4466,2473],{"class":2472},[2337,4468,2402],{"class":2347},[2337,4470,2478],{"class":2410},[2337,4472,2481],{"class":2347},[2337,4474,2484],{"class":2472},[2337,4476,2402],{"class":2347},[2337,4478,2489],{"class":2472},[2337,4480,2492],{"class":2347},[2337,4482,4483],{"class":2339,"line":2376},[2337,4484,2498],{"emptyLinePlaceholder":2497},[2337,4486,4487,4489,4491,4493,4495,4497,4499],{"class":2339,"line":2382},[2337,4488,2462],{"class":2343},[2337,4490,2505],{"class":2465},[2337,4492,2469],{"class":2343},[2337,4494,2510],{"class":2343},[2337,4496,2513],{"class":2347},[2337,4498,2516],{"class":2472},[2337,4500,2519],{"class":2347},[2337,4502,4503,4505,4507,4510,4512,4514],{"class":2339,"line":2388},[2337,4504,4110],{"class":2472},[2337,4506,2402],{"class":2347},[2337,4508,4509],{"class":2410},"'shapes'",[2337,4511,1874],{"class":2347},[2337,4513,2603],{"class":2465},[2337,4515,2532],{"class":2347},[2337,4517,4518],{"class":2339,"line":2396},[2337,4519,2928],{"class":2347},[2337,4521,4522,4524],{"class":2339,"line":2417},[2337,4523,2933],{"class":2410},[2337,4525,2606],{"class":2347},[2337,4527,4528],{"class":2339,"line":2423},[2337,4529,2669],{"class":2347},[2337,4531,4532],{"class":2339,"line":2429},[2337,4533,4534],{"class":2347},"                children: [\n",[2337,4536,4537],{"class":2339,"line":2723},[2337,4538,4539],{"class":2347},"                    {\n",[2337,4541,4542],{"class":2339,"line":2728},[2337,4543,4544],{"class":2347},"                        item: {\n",[2337,4546,4547,4550,4552],{"class":2339,"line":2964},[2337,4548,4549],{"class":2347},"                            circles: [",[2337,4551,2550],{"class":2410},[2337,4553,2553],{"class":2347},[2337,4555,4556],{"class":2339,"line":2969},[2337,4557,4558],{"class":2347},"                        },\n",[2337,4560,4561],{"class":2339,"line":3140},[2337,4562,4563],{"class":2347},"                    },\n",[2337,4565,4567],{"class":2339,"line":4566},15,[2337,4568,4569],{"class":2347},"                ],\n",[2337,4571,4573],{"class":2339,"line":4572},16,[2337,4574,4575],{"class":2347},"            },\n",[2337,4577,4579],{"class":2339,"line":4578},17,[2337,4580,2961],{"class":2347},[2337,4582,4584],{"class":2339,"line":4583},18,[2337,4585,2558],{"class":2347},[2337,4587,4589],{"class":2339,"line":4588},19,[2337,4590,2563],{"class":2347},[1852,4592,2566],{},[2326,4594,4595,4668],{},[1999,4596,4598],{"className":2571,"code":4597,"filename":2573,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"id\": 1,\n        \"children\": [\n            {\n                \"item\": {\n                    \"metadata_color_json\": \"red\"\n                }\n            }\n        ]\n    }\n}\n",[1866,4599,4600,4604,4610,4620,4627,4631,4638,4648,4652,4656,4660,4664],{"__ignoreMap":24},[2337,4601,4602],{"class":2339,"line":2340},[2337,4603,2580],{"class":2347},[2337,4605,4606,4608],{"class":2339,"line":2367},[2337,4607,2585],{"class":2465},[2337,4609,2657],{"class":2347},[2337,4611,4612,4614,4616,4618],{"class":2339,"line":2376},[2337,4613,4166],{"class":2465},[2337,4615,2407],{"class":2347},[2337,4617,2603],{"class":2465},[2337,4619,2606],{"class":2347},[2337,4621,4622,4625],{"class":2339,"line":2382},[2337,4623,4624],{"class":2465},"        \"children\"",[2337,4626,2588],{"class":2347},[2337,4628,4629],{"class":2339,"line":2388},[2337,4630,2669],{"class":2347},[2337,4632,4633,4636],{"class":2339,"line":2396},[2337,4634,4635],{"class":2465},"                \"item\"",[2337,4637,2657],{"class":2347},[2337,4639,4640,4643,4645],{"class":2339,"line":2417},[2337,4641,4642],{"class":2465},"                    \"metadata_color_json\"",[2337,4644,2407],{"class":2347},[2337,4646,4647],{"class":2410},"\"red\"\n",[2337,4649,4650],{"class":2339,"line":2423},[2337,4651,3125],{"class":2347},[2337,4653,4654],{"class":2339,"line":2429},[2337,4655,2715],{"class":2347},[2337,4657,4658],{"class":2339,"line":2723},[2337,4659,2720],{"class":2347},[2337,4661,4662],{"class":2339,"line":2728},[2337,4663,2426],{"class":2347},[2337,4665,4666],{"class":2339,"line":2964},[2337,4667,2432],{"class":2347},[1999,4669,4671],{"className":2571,"code":4670,"filename":2353,"language":2199,"meta":24,"style":24},"{\n    \"data\": {\n        \"shapes_by_id\": {\n            \"id\": 1,\n            \"children\": [\n                {\n                    \"item\": {\n                        \"metadata_func\": { \"color\": \"red\" }\n                    }\n                }\n            ]\n        }\n    }\n}\n",[1866,4672,4673,4677,4683,4690,4700,4707,4712,4719,4735,4739,4743,4747,4751,4755],{"__ignoreMap":24},[2337,4674,4675],{"class":2339,"line":2340},[2337,4676,2580],{"class":2347},[2337,4678,4679,4681],{"class":2339,"line":2367},[2337,4680,2585],{"class":2465},[2337,4682,2657],{"class":2347},[2337,4684,4685,4688],{"class":2339,"line":2376},[2337,4686,4687],{"class":2465},"        \"shapes_by_id\"",[2337,4689,2657],{"class":2347},[2337,4691,4692,4694,4696,4698],{"class":2339,"line":2382},[2337,4693,2598],{"class":2465},[2337,4695,2407],{"class":2347},[2337,4697,2603],{"class":2465},[2337,4699,2606],{"class":2347},[2337,4701,4702,4705],{"class":2339,"line":2388},[2337,4703,4704],{"class":2465},"            \"children\"",[2337,4706,2588],{"class":2347},[2337,4708,4709],{"class":2339,"line":2396},[2337,4710,4711],{"class":2347},"                {\n",[2337,4713,4714,4717],{"class":2339,"line":2417},[2337,4715,4716],{"class":2465},"                    \"item\"",[2337,4718,2657],{"class":2347},[2337,4720,4721,4724,4726,4728,4730,4733],{"class":2339,"line":2423},[2337,4722,4723],{"class":2465},"                        \"metadata_func\"",[2337,4725,2699],{"class":2347},[2337,4727,2411],{"class":2465},[2337,4729,2407],{"class":2347},[2337,4731,4732],{"class":2410},"\"red\"",[2337,4734,2710],{"class":2347},[2337,4736,4737],{"class":2339,"line":2429},[2337,4738,4419],{"class":2347},[2337,4740,4741],{"class":2339,"line":2723},[2337,4742,3125],{"class":2347},[2337,4744,4745],{"class":2339,"line":2728},[2337,4746,4299],{"class":2347},[2337,4748,4749],{"class":2339,"line":2964},[2337,4750,2420],{"class":2347},[2337,4752,4753],{"class":2339,"line":2969},[2337,4754,2426],{"class":2347},[2337,4756,4757],{"class":2339,"line":3140},[2337,4758,2432],{"class":2347},[2100,4760,4762],{"id":4761},"depth-limits","Depth Limits",[1852,4764,4765,4767],{},[1866,4766,1868],{}," enforces two separate depth limits, calculated independently:",[1856,4769,4770,4796],{},[1859,4771,4772,4775,4776,4779,4780,4783,4784,4787,4788,4791,4792,4795],{},[1863,4773,4774],{},"Relational depth"," (",[1866,4777,4778],{},"MAX_RELATIONAL_DEPTH",", default ",[1866,4781,4782],{},"10",") limits how deep the relational path in the first argument can go. ",[1866,4785,4786],{},"json(category_id.metadata, a.b.c.d.e)"," has a relational depth of 2 (",[1866,4789,4790],{},"category_id"," + ",[1866,4793,4794],{},"metadata","), regardless of the JSON path length.",[1859,4797,4798,4775,4801,4779,4804,4806,4807,4810],{},[1863,4799,4800],{},"Path depth",[1866,4802,4803],{},"MAX_JSON_QUERY_DEPTH",[1866,4805,4782],{},") limits how many segments the JSON path itself can contain. ",[1866,4808,4809],{},"json(category_id.metadata, a[0].c.d.e.f.g.h.i.j)"," has a path depth of 10 and is allowed by default; one more segment exceeds the limit.",[1852,4812,4813],{},"Exceeding either limit returns an error.",[2100,4815,4817],{"id":4816},"typescript-sdk-type-safety","TypeScript SDK Type Safety",[1852,4819,4820,4821,4824,4825,4827,4828,4831],{},"The SDK enforces that the first argument of ",[1866,4822,4823],{},"json()"," must be a ",[1866,4826,2199],{},"-typed field. Non-json fields produce a TypeScript error. The output alias is typed automatically as ",[1866,4829,4830],{},"JsonValue | null"," with no cast needed.",[1999,4833,4837],{"className":4834,"code":4835,"language":4836,"meta":24,"style":24},"language-typescript shiki shiki-themes github-light github-light github-dark","import { createDirectus, readItems, rest } from '@directus/sdk';\n\ninterface Article {\n    id: number;\n    title: string;\n    metadata: 'json' | null; // type literal 'json' tells the SDK this is a json field\n}\n\ninterface Schema {\n    articles: Article[];\n}\n\nconst client = createDirectus\u003CSchema>('https://directus.example.com').with(rest());\n\n// valid: metadata is a json field; metadata_color_json is typed as JsonValue | null\nreadItems('articles', { fields: ['json(metadata, color)'] });\n\n// type error: title is a string field, not json\nreadItems('articles', { fields: ['json(title, color)'] });\n","typescript",[1866,4838,4839,4852,4856,4866,4879,4891,4914,4918,4922,4931,4942,4946,4950,4982,4986,4991,5008,5012,5017],{"__ignoreMap":24},[2337,4840,4841,4843,4846,4848,4850],{"class":2339,"line":2340},[2337,4842,2445],{"class":2343},[2337,4844,4845],{"class":2347}," { createDirectus, readItems, rest } ",[2337,4847,2451],{"class":2343},[2337,4849,2454],{"class":2410},[2337,4851,2457],{"class":2347},[2337,4853,4854],{"class":2339,"line":2367},[2337,4855,2498],{"emptyLinePlaceholder":2497},[2337,4857,4858,4861,4864],{"class":2339,"line":2376},[2337,4859,4860],{"class":2343},"interface",[2337,4862,4863],{"class":2472}," Article",[2337,4865,2364],{"class":2347},[2337,4867,4868,4871,4874,4877],{"class":2339,"line":2382},[2337,4869,4870],{"class":2370},"    id",[2337,4872,4873],{"class":2343},":",[2337,4875,4876],{"class":2465}," number",[2337,4878,2457],{"class":2347},[2337,4880,4881,4884,4886,4889],{"class":2339,"line":2388},[2337,4882,4883],{"class":2370},"    title",[2337,4885,4873],{"class":2343},[2337,4887,4888],{"class":2465}," string",[2337,4890,2457],{"class":2347},[2337,4892,4893,4896,4898,4901,4904,4907,4910],{"class":2339,"line":2396},[2337,4894,4895],{"class":2370},"    metadata",[2337,4897,4873],{"class":2343},[2337,4899,4900],{"class":2410}," 'json'",[2337,4902,4903],{"class":2343}," |",[2337,4905,4906],{"class":2465}," null",[2337,4908,4909],{"class":2347},"; ",[2337,4911,4913],{"class":4912},"sCsY4","// type literal 'json' tells the SDK this is a json field\n",[2337,4915,4916],{"class":2339,"line":2417},[2337,4917,2432],{"class":2347},[2337,4919,4920],{"class":2339,"line":2423},[2337,4921,2498],{"emptyLinePlaceholder":2497},[2337,4923,4924,4926,4929],{"class":2339,"line":2429},[2337,4925,4860],{"class":2343},[2337,4927,4928],{"class":2472}," Schema",[2337,4930,2364],{"class":2347},[2337,4932,4933,4935,4937,4939],{"class":2339,"line":2723},[2337,4934,2371],{"class":2370},[2337,4936,4873],{"class":2343},[2337,4938,4863],{"class":2472},[2337,4940,4941],{"class":2347},"[];\n",[2337,4943,4944],{"class":2339,"line":2728},[2337,4945,2432],{"class":2347},[2337,4947,4948],{"class":2339,"line":2964},[2337,4949,2498],{"emptyLinePlaceholder":2497},[2337,4951,4952,4954,4957,4959,4961,4964,4967,4970,4972,4974,4976,4978,4980],{"class":2339,"line":2969},[2337,4953,2462],{"class":2343},[2337,4955,4956],{"class":2465}," client",[2337,4958,2469],{"class":2343},[2337,4960,2473],{"class":2472},[2337,4962,4963],{"class":2347},"\u003C",[2337,4965,4966],{"class":2472},"Schema",[2337,4968,4969],{"class":2347},">(",[2337,4971,2478],{"class":2410},[2337,4973,2481],{"class":2347},[2337,4975,2484],{"class":2472},[2337,4977,2402],{"class":2347},[2337,4979,2489],{"class":2472},[2337,4981,2492],{"class":2347},[2337,4983,4984],{"class":2339,"line":3140},[2337,4985,2498],{"emptyLinePlaceholder":2497},[2337,4987,4988],{"class":2339,"line":4566},[2337,4989,4990],{"class":4912},"// valid: metadata is a json field; metadata_color_json is typed as JsonValue | null\n",[2337,4992,4993,4996,4998,5000,5003,5005],{"class":2339,"line":4572},[2337,4994,4995],{"class":2472},"readItems",[2337,4997,2402],{"class":2347},[2337,4999,2529],{"class":2410},[2337,5001,5002],{"class":2347},", { fields: [",[2337,5004,2550],{"class":2410},[2337,5006,5007],{"class":2347},"] });\n",[2337,5009,5010],{"class":2339,"line":4578},[2337,5011,2498],{"emptyLinePlaceholder":2497},[2337,5013,5014],{"class":2339,"line":4583},[2337,5015,5016],{"class":4912},"// type error: title is a string field, not json\n",[2337,5018,5019,5021,5023,5025,5027,5030],{"class":2339,"line":4588},[2337,5020,4995],{"class":2472},[2337,5022,2402],{"class":2347},[2337,5024,2529],{"class":2410},[2337,5026,5002],{"class":2347},[2337,5028,5029],{"class":2410},"'json(title, color)'",[2337,5031,5007],{"class":2347},[1852,5033,5034,5035,5038,5039,1874,5041,1878,5043,5045,5046,5049,5050,2481],{},"The alias rule is ",[1866,5036,5037],{},"{field}_{path}_json"," with ",[1866,5040,2109],{},[1866,5042,2257],{},[1866,5044,2260],{}," replaced by ",[1866,5047,5048],{},"_",". For a relational field, the extracted alias appears typed on the related item (for example, ",[1866,5051,5052],{},"items[0].category_id.metadata_color_json",[2140,5054,5056,5061],{"icon":5055},"material-symbols:info-outline",[1852,5057,5058],{},[1863,5059,5060],{},"Alias Typing Requires Literal Field Arrays",[1852,5062,5063,5064,5066,5067,5070,5071,5074],{},"Alias typing only works when the ",[1866,5065,1873],{}," array is an inline literal or typed ",[1866,5068,5069],{},"as const",". If the array is built dynamically at runtime, TypeScript widens it to ",[1866,5072,5073],{},"string[]"," and the aliases are not present in the inferred return type.",[1852,5076,5077,5078,5080,5081,5083,5084,5086,5087,5090,5091,5093],{},"When typing inside the ",[1866,5079,1873],{}," array, the SDK provides partial autocomplete for the ",[1866,5082,4823],{}," function. For each ",[1866,5085,2199],{},"-typed field in your schema, the IDE offers ",[1866,5088,5089],{},"json(fieldName, "," as a completion, positioning the cursor ready for the path argument. This works via TypeScript's template-literal completion (TypeScript >= 4.7). Only ",[1866,5092,2199],{},"-typed fields appear as suggestions; the path argument is a free string with no completion hints.",[1900,5095,1861,5097,5099],{"id":5096},"the-_json-filter-operator",[1866,5098,1889],{}," Filter Operator",[1852,5101,1861,5102,5104],{},[1866,5103,1889],{}," operator filters items by values inside a JSON field. It accepts an object mapping JSON paths to standard filter operators, letting you compare specific keys or array elements without loading the full document.",[1852,5106,5107,5109,5110,5112],{},[1866,5108,1889],{}," is only valid on ",[1866,5111,2199],{},"-typed fields.",[2100,5114,2166],{"id":5115},"syntax-1",[1852,5117,1861,5118,5120],{},[1866,5119,1889],{}," value is an object where each key is a JSON path and each value is a standard filter operator object.",[1999,5122,5125],{"className":5123,"code":5124,"language":2004},[2002],"{ \"field\": { \"_json\": { \"path\": { \"_operator\": value } } } }\n",[1866,5126,5124],{"__ignoreMap":24},[1852,5128,5129,5130,5132,5133,2481],{},"In GraphQL, input-object keys must be valid identifiers, so paths containing dots, brackets, or starting with ",[1866,5131,2257],{}," must be passed as a typed variable (see ",[2157,5134,5136],{"href":5135},"#paths-with-dots-or-brackets","Paths with Dots or Brackets",[2100,5138,5140],{"id":5139},"supported-inner-operators","Supported Inner Operators",[1908,5142,5143,5153],{},[1911,5144,5145],{},[1914,5146,5147,5150],{},[1917,5148,5149],{},"Category",[1917,5151,5152],{},"Operators",[1927,5154,5155,5174,5187,5200,5219,5237,5262],{},[1914,5156,5157,5160],{},[1932,5158,5159],{},"Equality",[1932,5161,5162,1874,5165,1874,5168,1874,5171],{},[1866,5163,5164],{},"_eq",[1866,5166,5167],{},"_neq",[1866,5169,5170],{},"_ieq",[1866,5172,5173],{},"_nieq",[1914,5175,5176,5179],{},[1932,5177,5178],{},"Null",[1932,5180,5181,1874,5184],{},[1866,5182,5183],{},"_null",[1866,5185,5186],{},"_nnull",[1914,5188,5189,5192],{},[1932,5190,5191],{},"Set",[1932,5193,5194,1874,5197],{},[1866,5195,5196],{},"_in",[1866,5198,5199],{},"_nin",[1914,5201,5202,5205],{},[1932,5203,5204],{},"String",[1932,5206,5207,1874,5210,1874,5213,1874,5216],{},[1866,5208,5209],{},"_contains",[1866,5211,5212],{},"_ncontains",[1866,5214,5215],{},"_icontains",[1866,5217,5218],{},"_nicontains",[1914,5220,5221,5224],{},[1932,5222,5223],{},"Prefix / Suffix",[1932,5225,5226,1874,5229,5232,5233,5236],{},[1866,5227,5228],{},"_starts_with",[1866,5230,5231],{},"_ends_with"," (plus ",[1866,5234,5235],{},"_i"," variants)",[1914,5238,5239,5242],{},[1932,5240,5241],{},"Numeric",[1932,5243,5244,1874,5247,1874,5250,1874,5253,1874,5256,1874,5259],{},[1866,5245,5246],{},"_gt",[1866,5248,5249],{},"_gte",[1866,5251,5252],{},"_lt",[1866,5254,5255],{},"_lte",[1866,5257,5258],{},"_between",[1866,5260,5261],{},"_nbetween",[1914,5263,5264,5267],{},[1932,5265,5266],{},"Empty",[1932,5268,5269,1874,5272],{},[1866,5270,5271],{},"_empty",[1866,5273,5274],{},"_nempty",[2100,5276,2324],{"id":5277},"basic-example-1",[1852,5279,5280,5281,5283,5284,5286,5287,2109],{},"Filter articles where the ",[1866,5282,1941],{}," key inside the ",[1866,5285,4794],{}," JSON field equals ",[1866,5288,2707],{},[2326,5290,5291,5314,5372],{},[1999,5292,5294],{"className":2330,"code":5293,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles\n    ?filter={\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}\n",[1866,5295,5296,5303],{"__ignoreMap":24},[2337,5297,5298,5300],{"class":2339,"line":2340},[2337,5299,2344],{"class":2343},[2337,5301,5302],{"class":2347}," /items/articles\n",[2337,5304,5305,5308,5311],{"class":2339,"line":2367},[2337,5306,5307],{"class":2343},"    ?",[2337,5309,5310],{"class":2347},"filter=",[2337,5312,5313],{"class":2410},"{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}\n",[1999,5315,5317],{"className":2351,"code":5316,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles(filter: { metadata: { _json: { color: { _eq: \"blue\" } } } }) {\n        id\n        title\n    }\n}\n",[1866,5318,5319,5325,5356,5360,5364,5368],{"__ignoreMap":24},[2337,5320,5321,5323],{"class":2339,"line":2340},[2337,5322,2361],{"class":2343},[2337,5324,2364],{"class":2347},[2337,5326,5327,5329,5331,5333,5335,5337,5339,5341,5343,5345,5347,5349,5351,5353],{"class":2339,"line":2367},[2337,5328,2371],{"class":2370},[2337,5330,2402],{"class":2347},[2337,5332,1894],{"class":2370},[2337,5334,2699],{"class":2347},[2337,5336,4794],{"class":2410},[2337,5338,2699],{"class":2347},[2337,5340,1889],{"class":2410},[2337,5342,2699],{"class":2347},[2337,5344,1941],{"class":2410},[2337,5346,2699],{"class":2347},[2337,5348,5164],{"class":2410},[2337,5350,2407],{"class":2347},[2337,5352,2707],{"class":2410},[2337,5354,5355],{"class":2347}," } } } }) {\n",[2337,5357,5358],{"class":2339,"line":2376},[2337,5359,2379],{"class":2370},[2337,5361,5362],{"class":2339,"line":2382},[2337,5363,2385],{"class":2370},[2337,5365,5366],{"class":2339,"line":2388},[2337,5367,2426],{"class":2347},[2337,5369,5370],{"class":2339,"line":2396},[2337,5371,2432],{"class":2347},[1999,5373,5375],{"className":2435,"code":5374,"filename":2437,"language":2438,"meta":24,"style":24},"import { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n    readItems('articles', {\n        filter: {\n            metadata: {\n                _json: { color: { _eq: 'blue' } },\n            },\n        },\n    })\n);\n",[1866,5376,5377,5389,5413,5417,5433,5443,5448,5453,5463,5467,5472,5476],{"__ignoreMap":24},[2337,5378,5379,5381,5383,5385,5387],{"class":2339,"line":2340},[2337,5380,2445],{"class":2343},[2337,5382,2448],{"class":2347},[2337,5384,2451],{"class":2343},[2337,5386,2454],{"class":2410},[2337,5388,2457],{"class":2347},[2337,5390,5391,5393,5395,5397,5399,5401,5403,5405,5407,5409,5411],{"class":2339,"line":2367},[2337,5392,2462],{"class":2343},[2337,5394,2466],{"class":2465},[2337,5396,2469],{"class":2343},[2337,5398,2473],{"class":2472},[2337,5400,2402],{"class":2347},[2337,5402,2478],{"class":2410},[2337,5404,2481],{"class":2347},[2337,5406,2484],{"class":2472},[2337,5408,2402],{"class":2347},[2337,5410,2489],{"class":2472},[2337,5412,2492],{"class":2347},[2337,5414,5415],{"class":2339,"line":2376},[2337,5416,2498],{"emptyLinePlaceholder":2497},[2337,5418,5419,5421,5423,5425,5427,5429,5431],{"class":2339,"line":2382},[2337,5420,2462],{"class":2343},[2337,5422,2505],{"class":2465},[2337,5424,2469],{"class":2343},[2337,5426,2510],{"class":2343},[2337,5428,2513],{"class":2347},[2337,5430,2516],{"class":2472},[2337,5432,2519],{"class":2347},[2337,5434,5435,5437,5439,5441],{"class":2339,"line":2388},[2337,5436,2524],{"class":2472},[2337,5438,2402],{"class":2347},[2337,5440,2529],{"class":2410},[2337,5442,2532],{"class":2347},[2337,5444,5445],{"class":2339,"line":2396},[2337,5446,5447],{"class":2347},"        filter: {\n",[2337,5449,5450],{"class":2339,"line":2417},[2337,5451,5452],{"class":2347},"            metadata: {\n",[2337,5454,5455,5458,5461],{"class":2339,"line":2423},[2337,5456,5457],{"class":2347},"                _json: { color: { _eq: ",[2337,5459,5460],{"class":2410},"'blue'",[2337,5462,4277],{"class":2347},[2337,5464,5465],{"class":2339,"line":2429},[2337,5466,4575],{"class":2347},[2337,5468,5469],{"class":2339,"line":2723},[2337,5470,5471],{"class":2347},"        },\n",[2337,5473,5474],{"class":2339,"line":2728},[2337,5475,2558],{"class":2347},[2337,5477,5478],{"class":2339,"line":2964},[2337,5479,2563],{"class":2347},[1852,5481,2566],{},[1999,5483,5485],{"className":2571,"code":5484,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        { \"id\": 1, \"title\": \"An Article\" },\n        { \"id\": 4, \"title\": \"Another Article\" }\n    ]\n}\n",[1866,5486,5487,5491,5497,5520,5542,5546],{"__ignoreMap":24},[2337,5488,5489],{"class":2339,"line":2340},[2337,5490,2580],{"class":2347},[2337,5492,5493,5495],{"class":2339,"line":2367},[2337,5494,2585],{"class":2465},[2337,5496,2588],{"class":2347},[2337,5498,5499,5502,5505,5507,5509,5511,5514,5516,5518],{"class":2339,"line":2376},[2337,5500,5501],{"class":2347},"        { ",[2337,5503,5504],{"class":2465},"\"id\"",[2337,5506,2407],{"class":2347},[2337,5508,2603],{"class":2465},[2337,5510,1874],{"class":2347},[2337,5512,5513],{"class":2465},"\"title\"",[2337,5515,2407],{"class":2347},[2337,5517,2616],{"class":2410},[2337,5519,3408],{"class":2347},[2337,5521,5522,5524,5526,5528,5531,5533,5535,5537,5540],{"class":2339,"line":2382},[2337,5523,5501],{"class":2347},[2337,5525,5504],{"class":2465},[2337,5527,2407],{"class":2347},[2337,5529,5530],{"class":2465},"4",[2337,5532,1874],{"class":2347},[2337,5534,5513],{"class":2465},[2337,5536,2407],{"class":2347},[2337,5538,5539],{"class":2410},"\"Another Article\"",[2337,5541,2710],{"class":2347},[2337,5543,5544],{"class":2339,"line":2388},[2337,5545,2637],{"class":2347},[2337,5547,5548],{"class":2339,"line":2396},[2337,5549,2432],{"class":2347},[2100,5551,5553],{"id":5552},"multiple-path-conditions","Multiple Path Conditions",[1852,5555,5556,5557,5559],{},"Combine several path conditions inside a single ",[1866,5558,1889],{}," object.",[2326,5561,5562,5582,5705],{},[1999,5563,5565],{"className":2330,"code":5564,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles\n    ?filter={\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"red\"},\"brand\":{\"_in\":[\"BrandX\",\"BrandY\"]},\"level\":{\"_gte\":3}}}}\n",[1866,5566,5567,5573],{"__ignoreMap":24},[2337,5568,5569,5571],{"class":2339,"line":2340},[2337,5570,2344],{"class":2343},[2337,5572,5302],{"class":2347},[2337,5574,5575,5577,5579],{"class":2339,"line":2367},[2337,5576,5307],{"class":2343},[2337,5578,5310],{"class":2347},[2337,5580,5581],{"class":2410},"{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"red\"},\"brand\":{\"_in\":[\"BrandX\",\"BrandY\"]},\"level\":{\"_gte\":3}}}}\n",[1999,5583,5585],{"className":2351,"code":5584,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles(\n        filter: {\n            metadata: {\n                _json: {\n                    color: { _in: [\"red\", \"blue\"] }\n                    brand: { _nnull: true }\n                    description: { _contains: \"premium\" }\n                }\n            }\n        }\n    ) {\n        id\n        title\n    }\n}\n",[1866,5586,5587,5593,5599,5606,5613,5620,5640,5656,5672,5676,5680,5684,5689,5693,5697,5701],{"__ignoreMap":24},[2337,5588,5589,5591],{"class":2339,"line":2340},[2337,5590,2361],{"class":2343},[2337,5592,2364],{"class":2347},[2337,5594,5595,5597],{"class":2339,"line":2367},[2337,5596,2371],{"class":2370},[2337,5598,2519],{"class":2347},[2337,5600,5601,5604],{"class":2339,"line":2376},[2337,5602,5603],{"class":2370},"        filter",[2337,5605,2657],{"class":2347},[2337,5607,5608,5611],{"class":2339,"line":2382},[2337,5609,5610],{"class":2410},"            metadata",[2337,5612,2657],{"class":2347},[2337,5614,5615,5618],{"class":2339,"line":2388},[2337,5616,5617],{"class":2410},"                _json",[2337,5619,2657],{"class":2347},[2337,5621,5622,5625,5627,5629,5631,5633,5635,5637],{"class":2339,"line":2396},[2337,5623,5624],{"class":2410},"                    color",[2337,5626,2699],{"class":2347},[2337,5628,5196],{"class":2410},[2337,5630,3416],{"class":2347},[2337,5632,4732],{"class":4912},[2337,5634,1874],{"class":2347},[2337,5636,2707],{"class":2410},[2337,5638,5639],{"class":2347},"] }\n",[2337,5641,5642,5645,5647,5649,5651,5654],{"class":2339,"line":2417},[2337,5643,5644],{"class":2410},"                    brand",[2337,5646,2699],{"class":2347},[2337,5648,5186],{"class":2410},[2337,5650,2407],{"class":2347},[2337,5652,5653],{"class":2465},"true",[2337,5655,2710],{"class":2347},[2337,5657,5658,5661,5663,5665,5667,5670],{"class":2339,"line":2423},[2337,5659,5660],{"class":2410},"                    description",[2337,5662,2699],{"class":2347},[2337,5664,5209],{"class":2410},[2337,5666,2407],{"class":2347},[2337,5668,5669],{"class":2410},"\"premium\"",[2337,5671,2710],{"class":2347},[2337,5673,5674],{"class":2339,"line":2429},[2337,5675,3125],{"class":2347},[2337,5677,5678],{"class":2339,"line":2723},[2337,5679,2715],{"class":2347},[2337,5681,5682],{"class":2339,"line":2728},[2337,5683,2420],{"class":2347},[2337,5685,5686],{"class":2339,"line":2964},[2337,5687,5688],{"class":2347},"    ) {\n",[2337,5690,5691],{"class":2339,"line":2969},[2337,5692,2379],{"class":2370},[2337,5694,5695],{"class":2339,"line":3140},[2337,5696,2385],{"class":2370},[2337,5698,5699],{"class":2339,"line":4566},[2337,5700,2426],{"class":2347},[2337,5702,5703],{"class":2339,"line":4572},[2337,5704,2432],{"class":2347},[1999,5706,5708],{"className":2435,"code":5707,"filename":2437,"language":2438,"meta":24,"style":24},"const result = await directus.request(\n    readItems('articles', {\n        filter: {\n            metadata: {\n                _json: {\n                    color: { _eq: 'red' },\n                    brand: { _in: ['BrandX', 'BrandY'] },\n                    level: { _gte: 3 },\n                },\n            },\n        },\n    })\n);\n",[1866,5709,5710,5726,5736,5740,5744,5749,5759,5775,5785,5790,5794,5798,5802],{"__ignoreMap":24},[2337,5711,5712,5714,5716,5718,5720,5722,5724],{"class":2339,"line":2340},[2337,5713,2462],{"class":2343},[2337,5715,2505],{"class":2465},[2337,5717,2469],{"class":2343},[2337,5719,2510],{"class":2343},[2337,5721,2513],{"class":2347},[2337,5723,2516],{"class":2472},[2337,5725,2519],{"class":2347},[2337,5727,5728,5730,5732,5734],{"class":2339,"line":2367},[2337,5729,2524],{"class":2472},[2337,5731,2402],{"class":2347},[2337,5733,2529],{"class":2410},[2337,5735,2532],{"class":2347},[2337,5737,5738],{"class":2339,"line":2376},[2337,5739,5447],{"class":2347},[2337,5741,5742],{"class":2339,"line":2382},[2337,5743,5452],{"class":2347},[2337,5745,5746],{"class":2339,"line":2388},[2337,5747,5748],{"class":2347},"                _json: {\n",[2337,5750,5751,5754,5757],{"class":2339,"line":2396},[2337,5752,5753],{"class":2347},"                    color: { _eq: ",[2337,5755,5756],{"class":2410},"'red'",[2337,5758,3408],{"class":2347},[2337,5760,5761,5764,5767,5769,5772],{"class":2339,"line":2417},[2337,5762,5763],{"class":2347},"                    brand: { _in: [",[2337,5765,5766],{"class":2410},"'BrandX'",[2337,5768,1874],{"class":2347},[2337,5770,5771],{"class":2410},"'BrandY'",[2337,5773,5774],{"class":2347},"] },\n",[2337,5776,5777,5780,5783],{"class":2339,"line":2423},[2337,5778,5779],{"class":2347},"                    level: { _gte: ",[2337,5781,5782],{"class":2465},"3",[2337,5784,3408],{"class":2347},[2337,5786,5787],{"class":2339,"line":2429},[2337,5788,5789],{"class":2347},"                },\n",[2337,5791,5792],{"class":2339,"line":2723},[2337,5793,4575],{"class":2347},[2337,5795,5796],{"class":2339,"line":2728},[2337,5797,5471],{"class":2347},[2337,5799,5800],{"class":2339,"line":2964},[2337,5801,2558],{"class":2347},[2337,5803,5804],{"class":2339,"line":2969},[2337,5805,2563],{"class":2347},[1852,5807,2566],{},[1999,5809,5811],{"className":2571,"code":5810,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        { \"id\": 7, \"title\": \"Premium Red Item\" }\n    ]\n}\n",[1866,5812,5813,5817,5823,5845,5849],{"__ignoreMap":24},[2337,5814,5815],{"class":2339,"line":2340},[2337,5816,2580],{"class":2347},[2337,5818,5819,5821],{"class":2339,"line":2367},[2337,5820,2585],{"class":2465},[2337,5822,2588],{"class":2347},[2337,5824,5825,5827,5829,5831,5834,5836,5838,5840,5843],{"class":2339,"line":2376},[2337,5826,5501],{"class":2347},[2337,5828,5504],{"class":2465},[2337,5830,2407],{"class":2347},[2337,5832,5833],{"class":2465},"7",[2337,5835,1874],{"class":2347},[2337,5837,5513],{"class":2465},[2337,5839,2407],{"class":2347},[2337,5841,5842],{"class":2410},"\"Premium Red Item\"",[2337,5844,2710],{"class":2347},[2337,5846,5847],{"class":2339,"line":2382},[2337,5848,2637],{"class":2347},[2337,5850,5851],{"class":2339,"line":2388},[2337,5852,2432],{"class":2347},[2100,5854,5136],{"id":5855},"paths-with-dots-or-brackets",[1852,5857,5858,5859,5862,5863,5865,5866,5868,5869,5871],{},"Path keys with dots (",[1866,5860,5861],{},"settings.theme","), bracket indices (",[1866,5864,1971],{},"), or paths starting with ",[1866,5867,2257],{}," are plain strings in REST and the SDK. In GraphQL, input-object keys must be valid identifiers, so pass the ",[1866,5870,1889],{}," value as a typed variable instead.",[2326,5873,5874,5894,6000],{},[1999,5875,5877],{"className":2330,"code":5876,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles\n    ?filter={\"metadata\":{\"_json\":{\"settings.theme\":{\"_eq\":\"dark\"},\"tags[0]\":{\"_eq\":\"electronics\"}}}}\n",[1866,5878,5879,5885],{"__ignoreMap":24},[2337,5880,5881,5883],{"class":2339,"line":2340},[2337,5882,2344],{"class":2343},[2337,5884,5302],{"class":2347},[2337,5886,5887,5889,5891],{"class":2339,"line":2367},[2337,5888,5307],{"class":2343},[2337,5890,5310],{"class":2347},[2337,5892,5893],{"class":2410},"{\"metadata\":{\"_json\":{\"settings.theme\":{\"_eq\":\"dark\"},\"tags[0]\":{\"_eq\":\"electronics\"}}}}\n",[1999,5895,5897],{"className":2351,"code":5896,"filename":2353,"language":2354,"meta":24,"style":24},"query FilterByNestedPath($jsonFilter: JSON) {\n    articles(filter: { metadata: { _json: $jsonFilter } }) {\n        id\n        title\n    }\n}\n\n# Variables:\n# {\n#   \"jsonFilter\": {\n#     \"settings.theme\": { \"_eq\": \"dark\" },\n#     \"tags[0]\": { \"_eq\": \"electronics\" },\n#     \"[0].test\": { \"_null\": false }\n#   }\n# }\n",[1866,5898,5899,5917,5940,5944,5948,5952,5956,5960,5965,5970,5975,5980,5985,5990,5995],{"__ignoreMap":24},[2337,5900,5901,5903,5906,5908,5911,5913,5915],{"class":2339,"line":2340},[2337,5902,2361],{"class":2343},[2337,5904,5905],{"class":2472}," FilterByNestedPath",[2337,5907,2402],{"class":2347},[2337,5909,5910],{"class":2370},"$jsonFilter",[2337,5912,2407],{"class":2347},[2337,5914,2214],{"class":2465},[2337,5916,3993],{"class":2347},[2337,5918,5919,5921,5923,5925,5927,5929,5931,5933,5935,5937],{"class":2339,"line":2367},[2337,5920,2371],{"class":2370},[2337,5922,2402],{"class":2347},[2337,5924,1894],{"class":2370},[2337,5926,2699],{"class":2347},[2337,5928,4794],{"class":2410},[2337,5930,2699],{"class":2347},[2337,5932,1889],{"class":2410},[2337,5934,2407],{"class":2347},[2337,5936,5910],{"class":2370},[2337,5938,5939],{"class":2347}," } }) {\n",[2337,5941,5942],{"class":2339,"line":2376},[2337,5943,2379],{"class":2370},[2337,5945,5946],{"class":2339,"line":2382},[2337,5947,2385],{"class":2370},[2337,5949,5950],{"class":2339,"line":2388},[2337,5951,2426],{"class":2347},[2337,5953,5954],{"class":2339,"line":2396},[2337,5955,2432],{"class":2347},[2337,5957,5958],{"class":2339,"line":2417},[2337,5959,2498],{"emptyLinePlaceholder":2497},[2337,5961,5962],{"class":2339,"line":2423},[2337,5963,5964],{"class":4912},"# Variables:\n",[2337,5966,5967],{"class":2339,"line":2429},[2337,5968,5969],{"class":4912},"# {\n",[2337,5971,5972],{"class":2339,"line":2723},[2337,5973,5974],{"class":4912},"#   \"jsonFilter\": {\n",[2337,5976,5977],{"class":2339,"line":2728},[2337,5978,5979],{"class":4912},"#     \"settings.theme\": { \"_eq\": \"dark\" },\n",[2337,5981,5982],{"class":2339,"line":2964},[2337,5983,5984],{"class":4912},"#     \"tags[0]\": { \"_eq\": \"electronics\" },\n",[2337,5986,5987],{"class":2339,"line":2969},[2337,5988,5989],{"class":4912},"#     \"[0].test\": { \"_null\": false }\n",[2337,5991,5992],{"class":2339,"line":3140},[2337,5993,5994],{"class":4912},"#   }\n",[2337,5996,5997],{"class":2339,"line":4566},[2337,5998,5999],{"class":4912},"# }\n",[1999,6001,6003],{"className":2435,"code":6002,"filename":2437,"language":2438,"meta":24,"style":24},"const result = await directus.request(\n    readItems('articles', {\n        filter: {\n            metadata: {\n                _json: {\n                    'settings.theme': { _eq: 'dark' },\n                    'tags[0]': { _eq: 'electronics' },\n                },\n            },\n        },\n    })\n);\n",[1866,6004,6005,6021,6031,6035,6039,6043,6056,6068,6072,6076,6080,6084],{"__ignoreMap":24},[2337,6006,6007,6009,6011,6013,6015,6017,6019],{"class":2339,"line":2340},[2337,6008,2462],{"class":2343},[2337,6010,2505],{"class":2465},[2337,6012,2469],{"class":2343},[2337,6014,2510],{"class":2343},[2337,6016,2513],{"class":2347},[2337,6018,2516],{"class":2472},[2337,6020,2519],{"class":2347},[2337,6022,6023,6025,6027,6029],{"class":2339,"line":2367},[2337,6024,2524],{"class":2472},[2337,6026,2402],{"class":2347},[2337,6028,2529],{"class":2410},[2337,6030,2532],{"class":2347},[2337,6032,6033],{"class":2339,"line":2376},[2337,6034,5447],{"class":2347},[2337,6036,6037],{"class":2339,"line":2382},[2337,6038,5452],{"class":2347},[2337,6040,6041],{"class":2339,"line":2388},[2337,6042,5748],{"class":2347},[2337,6044,6045,6048,6051,6054],{"class":2339,"line":2396},[2337,6046,6047],{"class":2410},"                    'settings.theme'",[2337,6049,6050],{"class":2347},": { _eq: ",[2337,6052,6053],{"class":2410},"'dark'",[2337,6055,3408],{"class":2347},[2337,6057,6058,6061,6063,6066],{"class":2339,"line":2417},[2337,6059,6060],{"class":2410},"                    'tags[0]'",[2337,6062,6050],{"class":2347},[2337,6064,6065],{"class":2410},"'electronics'",[2337,6067,3408],{"class":2347},[2337,6069,6070],{"class":2339,"line":2423},[2337,6071,5789],{"class":2347},[2337,6073,6074],{"class":2339,"line":2429},[2337,6075,4575],{"class":2347},[2337,6077,6078],{"class":2339,"line":2723},[2337,6079,5471],{"class":2347},[2337,6081,6082],{"class":2339,"line":2728},[2337,6083,2558],{"class":2347},[2337,6085,6086],{"class":2339,"line":2964},[2337,6087,2563],{"class":2347},[1852,6089,2566],{},[1999,6091,6093],{"className":2571,"code":6092,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        { \"id\": 2, \"title\": \"Dark Mode Electronics Review\" }\n    ]\n}\n",[1866,6094,6095,6099,6105,6127,6131],{"__ignoreMap":24},[2337,6096,6097],{"class":2339,"line":2340},[2337,6098,2580],{"class":2347},[2337,6100,6101,6103],{"class":2339,"line":2367},[2337,6102,2585],{"class":2465},[2337,6104,2588],{"class":2347},[2337,6106,6107,6109,6111,6113,6116,6118,6120,6122,6125],{"class":2339,"line":2376},[2337,6108,5501],{"class":2347},[2337,6110,5504],{"class":2465},[2337,6112,2407],{"class":2347},[2337,6114,6115],{"class":2465},"2",[2337,6117,1874],{"class":2347},[2337,6119,5513],{"class":2465},[2337,6121,2407],{"class":2347},[2337,6123,6124],{"class":2410},"\"Dark Mode Electronics Review\"",[2337,6126,2710],{"class":2347},[2337,6128,6129],{"class":2339,"line":2382},[2337,6130,2637],{"class":2347},[2337,6132,6133],{"class":2339,"line":2388},[2337,6134,2432],{"class":2347},[2100,6136,6138],{"id":6137},"relational-json-filtering","Relational JSON Filtering",[1852,6140,6141,6143,6144,6146],{},[1866,6142,1889],{}," nests under relational keys the same way other filters do. To filter on a JSON field belonging to a related item, nest ",[1866,6145,1889],{}," under the relation name.",[2326,6148,6149,6169,6245],{},[1999,6150,6152],{"className":2330,"code":6151,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles\n    ?filter={\"category_id\":{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}}\n",[1866,6153,6154,6160],{"__ignoreMap":24},[2337,6155,6156,6158],{"class":2339,"line":2340},[2337,6157,2344],{"class":2343},[2337,6159,5302],{"class":2347},[2337,6161,6162,6164,6166],{"class":2339,"line":2367},[2337,6163,5307],{"class":2343},[2337,6165,5310],{"class":2347},[2337,6167,6168],{"class":2410},"{\"category_id\":{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}}\n",[1999,6170,6172],{"className":2351,"code":6171,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles(filter: { category_id: { metadata: { _json: { color: { _eq: \"blue\" } } } } }) {\n        id\n        title\n        category_id {\n            name\n        }\n    }\n}\n",[1866,6173,6174,6180,6215,6219,6223,6229,6233,6237,6241],{"__ignoreMap":24},[2337,6175,6176,6178],{"class":2339,"line":2340},[2337,6177,2361],{"class":2343},[2337,6179,2364],{"class":2347},[2337,6181,6182,6184,6186,6188,6190,6192,6194,6196,6198,6200,6202,6204,6206,6208,6210,6212],{"class":2339,"line":2367},[2337,6183,2371],{"class":2370},[2337,6185,2402],{"class":2347},[2337,6187,1894],{"class":2370},[2337,6189,2699],{"class":2347},[2337,6191,4790],{"class":2410},[2337,6193,2699],{"class":2347},[2337,6195,4794],{"class":2410},[2337,6197,2699],{"class":2347},[2337,6199,1889],{"class":2410},[2337,6201,2699],{"class":2347},[2337,6203,1941],{"class":2410},[2337,6205,2699],{"class":2347},[2337,6207,5164],{"class":2410},[2337,6209,2407],{"class":2347},[2337,6211,2707],{"class":2410},[2337,6213,6214],{"class":2347}," } } } } }) {\n",[2337,6216,6217],{"class":2339,"line":2376},[2337,6218,2379],{"class":2370},[2337,6220,6221],{"class":2339,"line":2382},[2337,6222,2385],{"class":2370},[2337,6224,6225,6227],{"class":2339,"line":2388},[2337,6226,3608],{"class":2370},[2337,6228,2364],{"class":2347},[2337,6230,6231],{"class":2339,"line":2396},[2337,6232,3615],{"class":2370},[2337,6234,6235],{"class":2339,"line":2417},[2337,6236,2420],{"class":2347},[2337,6238,6239],{"class":2339,"line":2423},[2337,6240,2426],{"class":2347},[2337,6242,6243],{"class":2339,"line":2429},[2337,6244,2432],{"class":2347},[1999,6246,6248],{"className":2435,"code":6247,"filename":2437,"language":2438,"meta":24,"style":24},"const result = await directus.request(\n    readItems('articles', {\n        filter: {\n            category_id: {\n                metadata: {\n                    _json: { color: { _eq: 'blue' } },\n                },\n            },\n        },\n    })\n);\n",[1866,6249,6250,6266,6276,6280,6285,6290,6299,6303,6307,6311,6315],{"__ignoreMap":24},[2337,6251,6252,6254,6256,6258,6260,6262,6264],{"class":2339,"line":2340},[2337,6253,2462],{"class":2343},[2337,6255,2505],{"class":2465},[2337,6257,2469],{"class":2343},[2337,6259,2510],{"class":2343},[2337,6261,2513],{"class":2347},[2337,6263,2516],{"class":2472},[2337,6265,2519],{"class":2347},[2337,6267,6268,6270,6272,6274],{"class":2339,"line":2367},[2337,6269,2524],{"class":2472},[2337,6271,2402],{"class":2347},[2337,6273,2529],{"class":2410},[2337,6275,2532],{"class":2347},[2337,6277,6278],{"class":2339,"line":2376},[2337,6279,5447],{"class":2347},[2337,6281,6282],{"class":2339,"line":2382},[2337,6283,6284],{"class":2347},"            category_id: {\n",[2337,6286,6287],{"class":2339,"line":2388},[2337,6288,6289],{"class":2347},"                metadata: {\n",[2337,6291,6292,6295,6297],{"class":2339,"line":2396},[2337,6293,6294],{"class":2347},"                    _json: { color: { _eq: ",[2337,6296,5460],{"class":2410},[2337,6298,4277],{"class":2347},[2337,6300,6301],{"class":2339,"line":2417},[2337,6302,5789],{"class":2347},[2337,6304,6305],{"class":2339,"line":2423},[2337,6306,4575],{"class":2347},[2337,6308,6309],{"class":2339,"line":2429},[2337,6310,5471],{"class":2347},[2337,6312,6313],{"class":2339,"line":2723},[2337,6314,2558],{"class":2347},[2337,6316,6317],{"class":2339,"line":2728},[2337,6318,2563],{"class":2347},[1852,6320,2566],{},[1999,6322,6324],{"className":2571,"code":6323,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"title\": \"An Article\",\n            \"category_id\": { \"name\": \"News\" }\n        }\n    ]\n}\n",[1866,6325,6326,6330,6336,6340,6350,6360,6375,6379,6383],{"__ignoreMap":24},[2337,6327,6328],{"class":2339,"line":2340},[2337,6329,2580],{"class":2347},[2337,6331,6332,6334],{"class":2339,"line":2367},[2337,6333,2585],{"class":2465},[2337,6335,2588],{"class":2347},[2337,6337,6338],{"class":2339,"line":2376},[2337,6339,2593],{"class":2347},[2337,6341,6342,6344,6346,6348],{"class":2339,"line":2382},[2337,6343,2598],{"class":2465},[2337,6345,2407],{"class":2347},[2337,6347,2603],{"class":2465},[2337,6349,2606],{"class":2347},[2337,6351,6352,6354,6356,6358],{"class":2339,"line":2388},[2337,6353,2611],{"class":2465},[2337,6355,2407],{"class":2347},[2337,6357,2616],{"class":2410},[2337,6359,2606],{"class":2347},[2337,6361,6362,6364,6366,6369,6371,6373],{"class":2339,"line":2396},[2337,6363,3807],{"class":2465},[2337,6365,2699],{"class":2347},[2337,6367,6368],{"class":2465},"\"name\"",[2337,6370,2407],{"class":2347},[2337,6372,3819],{"class":2410},[2337,6374,2710],{"class":2347},[2337,6376,6377],{"class":2339,"line":2417},[2337,6378,2420],{"class":2347},[2337,6380,6381],{"class":2339,"line":2423},[2337,6382,2637],{"class":2347},[2337,6384,6385],{"class":2339,"line":2429},[2337,6386,2432],{"class":2347},[2100,6388,6390],{"id":6389},"combining-multiple-conditions","Combining Multiple Conditions",[1852,6392,6393,6394,6396,6397,6400,6401,2109],{},"Combine multiple ",[1866,6395,1889],{}," filters at the top level with ",[1866,6398,6399],{},"_and"," or ",[1866,6402,6403],{},"_or",[2326,6405,6406,6426,6534],{},[1999,6407,6409],{"className":2330,"code":6408,"filename":2332,"language":2333,"meta":24,"style":24},"GET /items/articles\n    ?filter={\"_and\":[{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}},{\"metadata\":{\"_json\":{\"size\":{\"_gt\":10}}}}]}\n",[1866,6410,6411,6417],{"__ignoreMap":24},[2337,6412,6413,6415],{"class":2339,"line":2340},[2337,6414,2344],{"class":2343},[2337,6416,5302],{"class":2347},[2337,6418,6419,6421,6423],{"class":2339,"line":2367},[2337,6420,5307],{"class":2343},[2337,6422,5310],{"class":2347},[2337,6424,6425],{"class":2410},"{\"_and\":[{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}},{\"metadata\":{\"_json\":{\"size\":{\"_gt\":10}}}}]}\n",[1999,6427,6429],{"className":2351,"code":6428,"filename":2353,"language":2354,"meta":24,"style":24},"query {\n    articles(\n        filter: {\n            _and: [\n                { metadata: { _json: { color: { _eq: \"blue\" } } } }\n                { metadata: { _json: { level: { _gte: 3 } } } }\n            ]\n        }\n    ) {\n        id\n        title\n    }\n}\n",[1866,6430,6431,6437,6443,6449,6456,6481,6506,6510,6514,6518,6522,6526,6530],{"__ignoreMap":24},[2337,6432,6433,6435],{"class":2339,"line":2340},[2337,6434,2361],{"class":2343},[2337,6436,2364],{"class":2347},[2337,6438,6439,6441],{"class":2339,"line":2367},[2337,6440,2371],{"class":2370},[2337,6442,2519],{"class":2347},[2337,6444,6445,6447],{"class":2339,"line":2376},[2337,6446,5603],{"class":2370},[2337,6448,2657],{"class":2347},[2337,6450,6451,6454],{"class":2339,"line":2382},[2337,6452,6453],{"class":2410},"            _and",[2337,6455,2588],{"class":2347},[2337,6457,6458,6460,6462,6464,6466,6468,6470,6472,6474,6476,6478],{"class":2339,"line":2388},[2337,6459,4263],{"class":2347},[2337,6461,4794],{"class":2410},[2337,6463,2699],{"class":2347},[2337,6465,1889],{"class":2410},[2337,6467,2699],{"class":2347},[2337,6469,1941],{"class":2410},[2337,6471,2699],{"class":2347},[2337,6473,5164],{"class":2410},[2337,6475,2407],{"class":2347},[2337,6477,2707],{"class":2410},[2337,6479,6480],{"class":2347}," } } } }\n",[2337,6482,6483,6485,6487,6489,6491,6493,6496,6498,6500,6502,6504],{"class":2339,"line":2396},[2337,6484,4263],{"class":2347},[2337,6486,4794],{"class":2410},[2337,6488,2699],{"class":2347},[2337,6490,1889],{"class":2410},[2337,6492,2699],{"class":2347},[2337,6494,6495],{"class":2410},"level",[2337,6497,2699],{"class":2347},[2337,6499,5249],{"class":2410},[2337,6501,2407],{"class":2347},[2337,6503,5782],{"class":2465},[2337,6505,6480],{"class":2347},[2337,6507,6508],{"class":2339,"line":2417},[2337,6509,4299],{"class":2347},[2337,6511,6512],{"class":2339,"line":2423},[2337,6513,2420],{"class":2347},[2337,6515,6516],{"class":2339,"line":2429},[2337,6517,5688],{"class":2347},[2337,6519,6520],{"class":2339,"line":2723},[2337,6521,2379],{"class":2370},[2337,6523,6524],{"class":2339,"line":2728},[2337,6525,2385],{"class":2370},[2337,6527,6528],{"class":2339,"line":2964},[2337,6529,2426],{"class":2347},[2337,6531,6532],{"class":2339,"line":2969},[2337,6533,2432],{"class":2347},[1999,6535,6537],{"className":2435,"code":6536,"filename":2437,"language":2438,"meta":24,"style":24},"const result = await directus.request(\n    readItems('articles', {\n        filter: {\n            _and: [\n                { metadata: { _json: { color: { _eq: 'blue' } } } },\n                { metadata: { _json: { size: { _gt: 10 } } } },\n            ],\n        },\n    })\n);\n",[1866,6538,6539,6555,6565,6569,6574,6584,6593,6598,6602,6606],{"__ignoreMap":24},[2337,6540,6541,6543,6545,6547,6549,6551,6553],{"class":2339,"line":2340},[2337,6542,2462],{"class":2343},[2337,6544,2505],{"class":2465},[2337,6546,2469],{"class":2343},[2337,6548,2510],{"class":2343},[2337,6550,2513],{"class":2347},[2337,6552,2516],{"class":2472},[2337,6554,2519],{"class":2347},[2337,6556,6557,6559,6561,6563],{"class":2339,"line":2367},[2337,6558,2524],{"class":2472},[2337,6560,2402],{"class":2347},[2337,6562,2529],{"class":2410},[2337,6564,2532],{"class":2347},[2337,6566,6567],{"class":2339,"line":2376},[2337,6568,5447],{"class":2347},[2337,6570,6571],{"class":2339,"line":2382},[2337,6572,6573],{"class":2347},"            _and: [\n",[2337,6575,6576,6579,6581],{"class":2339,"line":2388},[2337,6577,6578],{"class":2347},"                { metadata: { _json: { color: { _eq: ",[2337,6580,5460],{"class":2410},[2337,6582,6583],{"class":2347}," } } } },\n",[2337,6585,6586,6589,6591],{"class":2339,"line":2396},[2337,6587,6588],{"class":2347},"                { metadata: { _json: { size: { _gt: ",[2337,6590,4782],{"class":2465},[2337,6592,6583],{"class":2347},[2337,6594,6595],{"class":2339,"line":2417},[2337,6596,6597],{"class":2347},"            ],\n",[2337,6599,6600],{"class":2339,"line":2423},[2337,6601,5471],{"class":2347},[2337,6603,6604],{"class":2339,"line":2429},[2337,6605,2558],{"class":2347},[2337,6607,6608],{"class":2339,"line":2723},[2337,6609,2563],{"class":2347},[1852,6611,2566],{},[1999,6613,6615],{"className":2571,"code":6614,"language":2199,"meta":24,"style":24},"{\n    \"data\": [\n        { \"id\": 3, \"title\": \"Large Blue Article\" }\n    ]\n}\n",[1866,6616,6617,6621,6627,6648,6652],{"__ignoreMap":24},[2337,6618,6619],{"class":2339,"line":2340},[2337,6620,2580],{"class":2347},[2337,6622,6623,6625],{"class":2339,"line":2367},[2337,6624,2585],{"class":2465},[2337,6626,2588],{"class":2347},[2337,6628,6629,6631,6633,6635,6637,6639,6641,6643,6646],{"class":2339,"line":2376},[2337,6630,5501],{"class":2347},[2337,6632,5504],{"class":2465},[2337,6634,2407],{"class":2347},[2337,6636,5782],{"class":2465},[2337,6638,1874],{"class":2347},[2337,6640,5513],{"class":2465},[2337,6642,2407],{"class":2347},[2337,6644,6645],{"class":2410},"\"Large Blue Article\"",[2337,6647,2710],{"class":2347},[2337,6649,6650],{"class":2339,"line":2382},[2337,6651,2637],{"class":2347},[2337,6653,6654],{"class":2339,"line":2388},[2337,6655,2432],{"class":2347},[1852,6657,6658,6659,6661,6662,6400,6664,4873],{},"You can also group conditions inside a single ",[1866,6660,1889],{}," value using ",[1866,6663,6399],{},[1866,6665,6403],{},[1999,6667,6669],{"className":2571,"code":6668,"language":2199,"meta":24,"style":24},"{\n    \"metadata\": {\n        \"_json\": {\n            \"_and\": [\n                { \"color\": { \"_eq\": \"blue\" } },\n                { \"size\": { \"_gt\": 10 } }\n            ]\n        }\n    }\n}\n",[1866,6670,6671,6675,6682,6689,6696,6713,6731,6735,6739,6743],{"__ignoreMap":24},[2337,6672,6673],{"class":2339,"line":2340},[2337,6674,2580],{"class":2347},[2337,6676,6677,6680],{"class":2339,"line":2367},[2337,6678,6679],{"class":2465},"    \"metadata\"",[2337,6681,2657],{"class":2347},[2337,6683,6684,6687],{"class":2339,"line":2376},[2337,6685,6686],{"class":2465},"        \"_json\"",[2337,6688,2657],{"class":2347},[2337,6690,6691,6694],{"class":2339,"line":2382},[2337,6692,6693],{"class":2465},"            \"_and\"",[2337,6695,2588],{"class":2347},[2337,6697,6698,6700,6702,6704,6707,6709,6711],{"class":2339,"line":2388},[2337,6699,4263],{"class":2347},[2337,6701,2411],{"class":2465},[2337,6703,2699],{"class":2347},[2337,6705,6706],{"class":2465},"\"_eq\"",[2337,6708,2407],{"class":2347},[2337,6710,2707],{"class":2410},[2337,6712,4277],{"class":2347},[2337,6714,6715,6717,6720,6722,6725,6727,6729],{"class":2339,"line":2396},[2337,6716,4263],{"class":2347},[2337,6718,6719],{"class":2465},"\"size\"",[2337,6721,2699],{"class":2347},[2337,6723,6724],{"class":2465},"\"_gt\"",[2337,6726,2407],{"class":2347},[2337,6728,4782],{"class":2465},[2337,6730,4294],{"class":2347},[2337,6732,6733],{"class":2339,"line":2417},[2337,6734,4299],{"class":2347},[2337,6736,6737],{"class":2339,"line":2423},[2337,6738,2420],{"class":2347},[2337,6740,6741],{"class":2339,"line":2429},[2337,6742,2426],{"class":2347},[2337,6744,6745],{"class":2339,"line":2723},[2337,6746,2432],{"class":2347},[2100,6748,6750],{"id":6749},"dynamic-variables","Dynamic Variables",[1852,6752,6753,6754,6757,6758,6761,6762,6764],{},"Dynamic filter variables like ",[1866,6755,6756],{},"$CURRENT_USER"," and ",[1866,6759,6760],{},"$NOW"," work inside ",[1866,6763,1889],{}," inner values. They are resolved before the filter runs, so they apply in permission rules and regular queries.",[1900,6766,6768],{"id":6767},"database-specific-notes","Database-Specific Notes",[1852,6770,6771],{},[1863,6772,6773],{},"PostgreSQL",[1852,6775,6776,6777,6779,6780,6782,6783,1874,6785,1874,6787,6789,6790,6793],{},"PostgreSQL extracts JSON scalars as ",[1866,6778,2004],{},". For ",[1866,6781,1889],{}," numeric comparisons, Directus automatically casts to a numeric type when the filter value is a number or an array of numbers, so ",[1866,6784,5246],{},[1866,6786,5252],{},[1866,6788,5258],{},", and related operators work correctly. If you supply a numeric comparison with a string value (for example ",[1866,6791,6792],{},"{\"version\":{\"_gt\":\"9\"}}","), the comparison remains lexicographic. Use a numeric literal to get numeric comparison.",[1852,6795,6796],{},[1863,6797,6798],{},"SQLite",[1852,6800,6801,6802,6805,6806,6808],{},"SQLite can return ",[1866,6803,6804],{},"0","/",[1866,6807,2603],{}," instead of boolean values when the path resolves to a boolean.",[1852,6810,6811],{},[1863,6812,6813],{},"MSSQL",[1852,6815,6816,6817,6824,6825,6828,6829,6832],{},"Always returns scalar values as ",[1863,6818,6819,6820,6823],{},"strings (",[1866,6821,6822],{},"NVARCHAR",")",", even when the original JSON value is a number or boolean. For example, a JSON integer ",[1866,6826,6827],{},"42"," is returned as the string ",[1866,6830,6831],{},"\"42\"",". Your application should perform type coercion as needed.",[1852,6834,6835],{},[1863,6836,6837],{},"Oracle",[1852,6839,6840,6841,6844,6845,6848,6849,2109],{},"Similar to MSSQL, Oracle returns scalar values as ",[1863,6842,6843],{},"strings",", regardless of the original JSON type (number, boolean, etc.). A JSON number ",[1866,6846,6847],{},"3.14"," is returned as ",[1866,6850,6851],{},"\"3.14\"",[6853,6854,6855],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}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 .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":24,"searchDepth":2340,"depth":2367,"links":6857},[6858,6861,6872,6883],{"id":1902,"depth":2367,"text":1903,"children":6859},[6860],{"id":2102,"depth":2376,"text":2103},{"id":2124,"depth":2367,"text":6862,"children":6863},"The json(field, path) Function",[6864,6865,6866,6867,6868,6869,6870,6871],{"id":2165,"depth":2376,"text":2166},{"id":2241,"depth":2376,"text":2242},{"id":2323,"depth":2376,"text":2324},{"id":2733,"depth":2376,"text":2734},{"id":3145,"depth":2376,"text":3146},{"id":3541,"depth":2376,"text":3542},{"id":4761,"depth":2376,"text":4762},{"id":4816,"depth":2376,"text":4817},{"id":5096,"depth":2367,"text":6873,"children":6874},"The _json Filter Operator",[6875,6876,6877,6878,6879,6880,6881,6882],{"id":5115,"depth":2376,"text":2166},{"id":5139,"depth":2376,"text":5140},{"id":5277,"depth":2376,"text":2324},{"id":5552,"depth":2376,"text":5553},{"id":5855,"depth":2376,"text":5136},{"id":6137,"depth":2376,"text":6138},{"id":6389,"depth":2376,"text":6390},{"id":6749,"depth":2376,"text":6750},{"id":6767,"depth":2367,"text":6768},"md",{},"---\ntitle: JSON Queries\ndescription: Extract and filter values in JSON fields using the json(field, path) function and _json filter operator, with path notation, relational support, GraphQL, and TypeScript SDK.\n---\n\nDirectus provides two complementary tools for working with JSON fields in queries:\n\n- The **`json(field, path)` function** extracts a specific value from a JSON document. It can be used in the `fields`, `sort`, and `alias` query parameters.\n- The **`_json` filter operator** filters items by values inside a JSON document without loading the full document. Use it in the `filter` query parameter.\n\nBoth use the same path notation and work across REST, GraphQL, and the TypeScript SDK.\n\n## Path Notation\n\nPaths use dot notation for object keys and bracket notation for array indices.\n\n| Pattern | Example | Meaning |\n|---|---|---|\n| `key` | `color` | Top-level key |\n| `a.b.c` | `settings.theme.color` | Nested keys |\n| `[n]` | `tags[0]` | Array element at index `n` |\n| `a[n].b` | `items[0].name` | Mixed object/array access |\n\n**Examples:**\n\n```\njson(metadata, color)                   → top-level key\njson(metadata, settings.theme)          → nested object\njson(data, items[0].name)               → array element property\njson(data, [0])                         → first element of a top-level array\n```\n\nThe following path syntaxes are **not supported** and return an error in both the function and filter operator:\n\n| Expression | Example |\n|---|---|\n| Empty brackets (wildcard) | `items[]` |\n| `[*]` wildcard | `items[*].name` |\n| `*` glob | `items.*` |\n| JSONPath predicates | `items[?(@.price > 10)]` |\n| `@` current node | `@.name` |\n| `$` root | `$.name` |\n\n### Object Keys with Special Characters\n\nThe path syntax uses `.` as a separator between key segments and has no escape mechanism. Object keys that contain dots, spaces, or other special characters cannot be reached. For example, a key `\"first.name\"` is interpreted as nested access to key `first`, then key `name`.\n\n## The `json(field, path)` Function\n\nThe `json(field, path)` function extracts the value from the specified path in a JSON field. It can be used anywhere a field reference is accepted, including the `fields`, `sort`, and `alias` query parameters.\n\n::callout{icon=\"material-symbols:warning-rounded\" color=\"warning\"}\n\n**Not Supported in Filters** \nThe `json(field, path)` function is not supported in the `filter` query parameter. For filtering JSON fields, use the [`_json` filter operator](#the-_json-filter-operator) instead.\n\n::\n\n### Syntax\n\n```\njson(field, path)\n```\n\n- **`field`** is the name of a JSON column in the collection (or a relational path to one).\n- **`path`** is a dot-and-bracket notation path to the value you want to extract from within the JSON document.\n\nBoth arguments are required and separated by a comma.\n\nIn GraphQL, each `json`-typed field exposes a `json(path: String!)` sub-field inside `{fieldName}_func`. The `path` argument is required. The return type is `JSON` (any scalar, object, or array). `{fieldName}_func` already exists for the `count` sub-field; `json` sits alongside it in the same selection.\n\nThe TypeScript SDK accepts `json(fieldName, path)` strings in the `fields` array. The first argument is constrained by TypeScript to fields typed as `json` in your schema. An invalid field name produces a type error. The SDK computes the response alias type automatically from the literal string, so extracted values are fully typed.\n\n### Response Format\n\nFor REST and the SDK, extracted values are returned as additional fields on each item using auto-generated aliases. The alias follows the pattern:\n\n```\n{field}_{path}_json\n```\n\nSpecial characters in the path (`[`, `]`, `.`) are replaced with underscores.\n\n| Request field | Response key |\n|---|---|\n| `json(metadata, color)` | `metadata_color_json` |\n| `json(metadata, settings.priority)` | `metadata_settings_priority_json` |\n| `json(data, items[0].name)` | `data_items_0_name_json` |\n\nIn GraphQL, the extracted value is returned inside `{fieldName}_func.json`. When requesting multiple paths from the same field, use GraphQL field aliases to distinguish them.\n\n### Basic Example\n\n::code-group\n\n```http [REST]\nGET /items/articles?fields=id,title,json(metadata, color)\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles {\n\t\tid\n\t\ttitle\n\t\tmetadata_func {\n\t\t\tjson(path: \"color\")\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfields: ['id', 'title', 'json(metadata, color)'],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"title\": \"An Article\",\n\t\t\t\"metadata_color_json\": \"blue\"\n\t\t}\n\t]\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"articles\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"title\": \"An Article\",\n\t\t\t\t\"metadata_func\": { \"json\": \"blue\" }\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n::\n\n### Multiple Paths\n\nExtract multiple values from the same JSON field in a single request. In GraphQL, use field aliases on the `json` sub-field to distinguish each extraction.\n\n::code-group\n\n```http [REST]\nGET /items/articles?fields=id,json(metadata, color),json(metadata, settings.theme),json(metadata, tags[0])\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles {\n\t\tid\n\t\tmetadata_func {\n\t\t\tcolor: json(path: \"color\")\n\t\t\ttheme: json(path: \"settings.theme\")\n\t\t\tfirstTag: json(path: \"tags[0]\")\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfields: [\n\t\t\t'id',\n\t\t\t'json(metadata, color)',\n\t\t\t'json(metadata, settings.theme)',\n\t\t\t'json(metadata, tags[0])',\n\t\t],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"metadata_color_json\": \"blue\",\n\t\t\t\"metadata_settings_theme_json\": \"dark\",\n\t\t\t\"metadata_tags_0_json\": \"featured\"\n\t\t}\n\t]\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"articles\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"metadata_func\": {\n\t\t\t\t\t\"color\": \"blue\",\n\t\t\t\t\t\"theme\": \"dark\",\n\t\t\t\t\t\"firstTag\": \"featured\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n::\n\n### Extracting an Object or Array\n\nWhen the path points to an object or array rather than a scalar, the full value is returned as parsed JSON.\n\n::callout{icon=\"material-symbols:warning-rounded\" color=\"warning\"}\n\n**Non-Scalar Paths in Sort and Filter** \nSorting or filtering by a path that resolves to an object or array can produce unexpected results. The database compares the serialized form, which depends on dialect-specific JSON ordering and formatting. Use paths that resolve to a scalar value (string, number, boolean) for reliable sorting and filtering.\n\n::\n\n::code-group\n\n```http [REST]\nGET /items/articles?fields=id,json(metadata, dimensions),json(metadata, tags)\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles {\n\t\tid\n\t\tmetadata_func {\n\t\t\tdimensions: json(path: \"dimensions\")\n\t\t\ttags: json(path: \"tags\")\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfields: ['id', 'json(metadata, dimensions)', 'json(metadata, tags)'],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"metadata_dimensions_json\": { \"width\": 100, \"height\": 50 },\n\t\t\t\"metadata_tags_json\": [\"featured\", \"new\"]\n\t\t}\n\t]\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"articles\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"metadata_func\": {\n\t\t\t\t\t\"dimensions\": { \"width\": 100, \"height\": 50 },\n\t\t\t\t\t\"tags\": [\"featured\", \"new\"]\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n::\n\n### Relational Queries\n\n`json(field, path)` can traverse relational fields to extract JSON values from related items. The relational path goes inside the first argument, before the JSON field name.\n\n#### Many-to-One (M2O)\n\nSyntax: `json(relation.json_field, path)`\n\nThe extracted value is returned nested under the relational key in the response, alongside any other requested fields from that relation. Multiple `json(field, path)` extractions from the same relation are grouped under the same relational key.\n\n::code-group\n\n```http [REST]\nGET /items/articles?fields=id,title,category_id.name,json(category_id.metadata, color)\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles {\n\t\tid\n\t\ttitle\n\t\tcategory_id {\n\t\t\tname\n\t\t\tmetadata_func {\n\t\t\t\tcolor: json(path: \"color\")\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfields: ['id', 'title', { category_id: ['name', 'json(metadata, color)'] }],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"title\": \"An Article\",\n\t\t\t\"category_id\": {\n\t\t\t\t\"name\": \"News\",\n\t\t\t\t\"metadata_color_json\": \"blue\"\n\t\t\t}\n\t\t}\n\t]\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"articles\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"title\": \"An Article\",\n\t\t\t\t\"category_id\": {\n\t\t\t\t\t\"name\": \"News\",\n\t\t\t\t\t\"metadata_func\": { \"color\": \"blue\" }\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n::\n\n#### One-to-Many (O2M)\n\nFor O2M relations, each related item returns its own extracted value. The response contains an array of objects, each with the extracted key.\n\n::code-group\n\n```http [REST]\nGET /items/articles/1?fields=id,json(comments.data, type)\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles_by_id(id: 1) {\n\t\tid\n\t\tcomments {\n\t\t\tdata_func {\n\t\t\t\tjson(path: \"type\")\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItem } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItem('articles', 1, {\n\t\tfields: ['id', { comments: ['json(data, type)'] }],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": {\n\t\t\"id\": 1,\n\t\t\"comments\": [\n\t\t\t{ \"data_type_json\": \"comment\" },\n\t\t\t{ \"data_type_json\": \"review\" }\n\t\t]\n\t}\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"articles_by_id\": {\n\t\t\t\"id\": 1,\n\t\t\t\"comments\": [\n\t\t\t\t{ \"data_func\": { \"json\": \"comment\" } },\n\t\t\t\t{ \"data_func\": { \"json\": \"review\" } }\n\t\t\t]\n\t\t}\n\t}\n}\n```\n\n::\n\n#### Many-to-Any (M2A)\n\nFor M2A relations, use the standard Directus collection scope syntax inside the first argument: `json(relation.item:collection_name.json_field, path)`\n\n::code-group\n\n```http [REST]\nGET /items/shapes/1?fields=id,json(children.item:circles.metadata, color)\n```\n\n```graphql [GraphQL]\nquery {\n\tshapes_by_id(id: 1) {\n\t\tid\n\t\tchildren {\n\t\t\titem {\n\t\t\t\t... on circles {\n\t\t\t\t\tmetadata_func {\n\t\t\t\t\t\tjson(path: \"color\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItem } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItem('shapes', 1, {\n\t\tfields: [\n\t\t\t'id',\n\t\t\t{\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\titem: {\n\t\t\t\t\t\t\tcircles: ['json(metadata, color)'],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t})\n);\n```\n\n::\n\nResponse:\n\n::code-group\n\n```json [REST / SDK]\n{\n\t\"data\": {\n\t\t\"id\": 1,\n\t\t\"children\": [\n\t\t\t{\n\t\t\t\t\"item\": {\n\t\t\t\t\t\"metadata_color_json\": \"red\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\n```\n\n```json [GraphQL]\n{\n\t\"data\": {\n\t\t\"shapes_by_id\": {\n\t\t\t\"id\": 1,\n\t\t\t\"children\": [\n\t\t\t\t{\n\t\t\t\t\t\"item\": {\n\t\t\t\t\t\t\"metadata_func\": { \"color\": \"red\" }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}\n```\n\n::\n\n### Depth Limits\n\n`json(field, path)` enforces two separate depth limits, calculated independently:\n\n- **Relational depth** (`MAX_RELATIONAL_DEPTH`, default `10`) limits how deep the relational path in the first argument can go. `json(category_id.metadata, a.b.c.d.e)` has a relational depth of 2 (`category_id` + `metadata`), regardless of the JSON path length.\n- **Path depth** (`MAX_JSON_QUERY_DEPTH`, default `10`) limits how many segments the JSON path itself can contain. `json(category_id.metadata, a[0].c.d.e.f.g.h.i.j)` has a path depth of 10 and is allowed by default; one more segment exceeds the limit.\n\nExceeding either limit returns an error.\n\n### TypeScript SDK Type Safety\n\nThe SDK enforces that the first argument of `json()` must be a `json`-typed field. Non-json fields produce a TypeScript error. The output alias is typed automatically as `JsonValue | null` with no cast needed.\n\n```typescript\nimport { createDirectus, readItems, rest } from '@directus/sdk';\n\ninterface Article {\n\tid: number;\n\ttitle: string;\n\tmetadata: 'json' | null; // type literal 'json' tells the SDK this is a json field\n}\n\ninterface Schema {\n\tarticles: Article[];\n}\n\nconst client = createDirectus\u003CSchema>('https://directus.example.com').with(rest());\n\n// valid: metadata is a json field; metadata_color_json is typed as JsonValue | null\nreadItems('articles', { fields: ['json(metadata, color)'] });\n\n// type error: title is a string field, not json\nreadItems('articles', { fields: ['json(title, color)'] });\n```\n\nThe alias rule is `{field}_{path}_json` with `.`, `[`, and `]` replaced by `_`. For a relational field, the extracted alias appears typed on the related item (for example, `items[0].category_id.metadata_color_json`).\n\n::callout{icon=\"material-symbols:info-outline\"}\n**Alias Typing Requires Literal Field Arrays**\n\nAlias typing only works when the `fields` array is an inline literal or typed `as const`. If the array is built dynamically at runtime, TypeScript widens it to `string[]` and the aliases are not present in the inferred return type.\n::\n\nWhen typing inside the `fields` array, the SDK provides partial autocomplete for the `json()` function. For each `json`-typed field in your schema, the IDE offers `json(fieldName, ` as a completion, positioning the cursor ready for the path argument. This works via TypeScript's template-literal completion (TypeScript >= 4.7). Only `json`-typed fields appear as suggestions; the path argument is a free string with no completion hints.\n\n## The `_json` Filter Operator\n\nThe `_json` operator filters items by values inside a JSON field. It accepts an object mapping JSON paths to standard filter operators, letting you compare specific keys or array elements without loading the full document.\n\n`_json` is only valid on `json`-typed fields.\n\n### Syntax\n\nThe `_json` value is an object where each key is a JSON path and each value is a standard filter operator object.\n\n```\n{ \"field\": { \"_json\": { \"path\": { \"_operator\": value } } } }\n```\n\nIn GraphQL, input-object keys must be valid identifiers, so paths containing dots, brackets, or starting with `[` must be passed as a typed variable (see [Paths with Dots or Brackets](#paths-with-dots-or-brackets)).\n\n### Supported Inner Operators\n\n| Category        | Operators                                                 |\n| --------------- | --------------------------------------------------------- |\n| Equality        | `_eq`, `_neq`, `_ieq`, `_nieq`                            |\n| Null            | `_null`, `_nnull`                                         |\n| Set             | `_in`, `_nin`                                             |\n| String          | `_contains`, `_ncontains`, `_icontains`, `_nicontains`    |\n| Prefix / Suffix | `_starts_with`, `_ends_with` (plus `_i` variants)         |\n| Numeric         | `_gt`, `_gte`, `_lt`, `_lte`, `_between`, `_nbetween`     |\n| Empty           | `_empty`, `_nempty`                                       |\n\n### Basic Example\n\nFilter articles where the `color` key inside the `metadata` JSON field equals `\"blue\"`.\n\n::code-group\n\n```http [REST]\nGET /items/articles\n\t?filter={\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles(filter: { metadata: { _json: { color: { _eq: \"blue\" } } } }) {\n\t\tid\n\t\ttitle\n\t}\n}\n```\n\n```js [SDK]\nimport { createDirectus, rest, readItems } from '@directus/sdk';\nconst directus = createDirectus('https://directus.example.com').with(rest());\n\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfilter: {\n\t\t\tmetadata: {\n\t\t\t\t_json: { color: { _eq: 'blue' } },\n\t\t\t},\n\t\t},\n\t})\n);\n```\n\n::\n\nResponse:\n\n```json\n{\n\t\"data\": [\n\t\t{ \"id\": 1, \"title\": \"An Article\" },\n\t\t{ \"id\": 4, \"title\": \"Another Article\" }\n\t]\n}\n```\n\n### Multiple Path Conditions\n\nCombine several path conditions inside a single `_json` object.\n\n::code-group\n\n```http [REST]\nGET /items/articles\n\t?filter={\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"red\"},\"brand\":{\"_in\":[\"BrandX\",\"BrandY\"]},\"level\":{\"_gte\":3}}}}\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles(\n\t\tfilter: {\n\t\t\tmetadata: {\n\t\t\t\t_json: {\n\t\t\t\t\tcolor: { _in: [\"red\", \"blue\"] }\n\t\t\t\t\tbrand: { _nnull: true }\n\t\t\t\t\tdescription: { _contains: \"premium\" }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t) {\n\t\tid\n\t\ttitle\n\t}\n}\n```\n\n```js [SDK]\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfilter: {\n\t\t\tmetadata: {\n\t\t\t\t_json: {\n\t\t\t\t\tcolor: { _eq: 'red' },\n\t\t\t\t\tbrand: { _in: ['BrandX', 'BrandY'] },\n\t\t\t\t\tlevel: { _gte: 3 },\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n);\n```\n\n::\n\nResponse:\n\n```json\n{\n\t\"data\": [\n\t\t{ \"id\": 7, \"title\": \"Premium Red Item\" }\n\t]\n}\n```\n\n### Paths with Dots or Brackets\n\nPath keys with dots (`settings.theme`), bracket indices (`tags[0]`), or paths starting with `[` are plain strings in REST and the SDK. In GraphQL, input-object keys must be valid identifiers, so pass the `_json` value as a typed variable instead.\n\n::code-group\n\n```http [REST]\nGET /items/articles\n\t?filter={\"metadata\":{\"_json\":{\"settings.theme\":{\"_eq\":\"dark\"},\"tags[0]\":{\"_eq\":\"electronics\"}}}}\n```\n\n```graphql [GraphQL]\nquery FilterByNestedPath($jsonFilter: JSON) {\n\tarticles(filter: { metadata: { _json: $jsonFilter } }) {\n\t\tid\n\t\ttitle\n\t}\n}\n\n# Variables:\n# {\n#   \"jsonFilter\": {\n#     \"settings.theme\": { \"_eq\": \"dark\" },\n#     \"tags[0]\": { \"_eq\": \"electronics\" },\n#     \"[0].test\": { \"_null\": false }\n#   }\n# }\n```\n\n```js [SDK]\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfilter: {\n\t\t\tmetadata: {\n\t\t\t\t_json: {\n\t\t\t\t\t'settings.theme': { _eq: 'dark' },\n\t\t\t\t\t'tags[0]': { _eq: 'electronics' },\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n);\n```\n\n::\n\nResponse:\n\n```json\n{\n\t\"data\": [\n\t\t{ \"id\": 2, \"title\": \"Dark Mode Electronics Review\" }\n\t]\n}\n```\n\n### Relational JSON Filtering\n\n`_json` nests under relational keys the same way other filters do. To filter on a JSON field belonging to a related item, nest `_json` under the relation name.\n\n::code-group\n\n```http [REST]\nGET /items/articles\n\t?filter={\"category_id\":{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}}}\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles(filter: { category_id: { metadata: { _json: { color: { _eq: \"blue\" } } } } }) {\n\t\tid\n\t\ttitle\n\t\tcategory_id {\n\t\t\tname\n\t\t}\n\t}\n}\n```\n\n```js [SDK]\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfilter: {\n\t\t\tcategory_id: {\n\t\t\t\tmetadata: {\n\t\t\t\t\t_json: { color: { _eq: 'blue' } },\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n);\n```\n\n::\n\nResponse:\n\n```json\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"id\": 1,\n\t\t\t\"title\": \"An Article\",\n\t\t\t\"category_id\": { \"name\": \"News\" }\n\t\t}\n\t]\n}\n```\n\n### Combining Multiple Conditions\n\nCombine multiple `_json` filters at the top level with `_and` or `_or`.\n\n::code-group\n\n```http [REST]\nGET /items/articles\n\t?filter={\"_and\":[{\"metadata\":{\"_json\":{\"color\":{\"_eq\":\"blue\"}}}},{\"metadata\":{\"_json\":{\"size\":{\"_gt\":10}}}}]}\n```\n\n```graphql [GraphQL]\nquery {\n\tarticles(\n\t\tfilter: {\n\t\t\t_and: [\n\t\t\t\t{ metadata: { _json: { color: { _eq: \"blue\" } } } }\n\t\t\t\t{ metadata: { _json: { level: { _gte: 3 } } } }\n\t\t\t]\n\t\t}\n\t) {\n\t\tid\n\t\ttitle\n\t}\n}\n```\n\n```js [SDK]\nconst result = await directus.request(\n\treadItems('articles', {\n\t\tfilter: {\n\t\t\t_and: [\n\t\t\t\t{ metadata: { _json: { color: { _eq: 'blue' } } } },\n\t\t\t\t{ metadata: { _json: { size: { _gt: 10 } } } },\n\t\t\t],\n\t\t},\n\t})\n);\n```\n\n::\n\nResponse:\n\n```json\n{\n\t\"data\": [\n\t\t{ \"id\": 3, \"title\": \"Large Blue Article\" }\n\t]\n}\n```\n\nYou can also group conditions inside a single `_json` value using `_and` or `_or`:\n\n```json\n{\n\t\"metadata\": {\n\t\t\"_json\": {\n\t\t\t\"_and\": [\n\t\t\t\t{ \"color\": { \"_eq\": \"blue\" } },\n\t\t\t\t{ \"size\": { \"_gt\": 10 } }\n\t\t\t]\n\t\t}\n\t}\n}\n```\n\n### Dynamic Variables\n\nDynamic filter variables like `$CURRENT_USER` and `$NOW` work inside `_json` inner values. They are resolved before the filter runs, so they apply in permission rules and regular queries.\n\n## Database-Specific Notes\n\n**PostgreSQL**\n\nPostgreSQL extracts JSON scalars as `text`. For `_json` numeric comparisons, Directus automatically casts to a numeric type when the filter value is a number or an array of numbers, so `_gt`, `_lt`, `_between`, and related operators work correctly. If you supply a numeric comparison with a string value (for example `{\"version\":{\"_gt\":\"9\"}}`), the comparison remains lexicographic. Use a numeric literal to get numeric comparison.\n\n**SQLite**\n\nSQLite can return `0`/`1` instead of boolean values when the path resolves to a boolean.\n\n**MSSQL**\n\nAlways returns scalar values as **strings (`NVARCHAR`)**, even when the original JSON value is a number or boolean. For example, a JSON integer `42` is returned as the string `\"42\"`. Your application should perform type coercion as needed.\n\n**Oracle**\n\nSimilar to MSSQL, Oracle returns scalar values as **strings**, regardless of the original JSON type (number, boolean, etc.). A JSON number `3.14` is returned as `\"3.14\"`.\n",{"title":678,"description":685},"1ccBhc3Kl3BrM_3gAKDJXrmjckMQGqNAP1d1Mx5SvKI",[6890,6891],{"title":678,"path":679,"stem":680,"description":681,"children":-1},{"title":692,"path":693,"stem":694,"description":695,"children":-1},1776802773843]