Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.
POST
/
store
/
execute
Error
A valid request URL is required to generate request examples
All requests to this endpoint require authentication using an API key or JWT token in the Authorization: Bearer header. For detailed instructions on creating and managing API keys, see Auth and Parameters.
This endpoint is available at both /api/v4/store/execute and /api/v5/store/execute. The v5 API defaults to DQL_STRICT_MODE=false, which treats nested objects as MAPs instead of REGISTERs. For more information, see API v4 vs v5.
The following examples demonstrate common DQL operations using curl. Replace {YOUR_CLOUD_URL_ENDPOINT} with your Cloud URL Endpoint from the portal (see Getting your Cloud URL Endpoint) and {YOUR_API_KEY} with your API key.
Important: The DELETE operation permanently removes documents from the Ditto system. Deleted documents cannot be recovered. For detailed guidance on delete behavior, tombstones, and best practices, see Removing Documents.Key considerations:
Deleting large numbers of documents (50,000+) at once can impact system performance. Use LIMIT to batch deletions.
Concurrent delete and update operations on the same document can result in unexpected “husked documents.”
Consider using the soft-delete pattern or EVICT for local-only removal instead of permanent deletion.
Delete a document from a collection:
cURL
curl -X POST 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute' \ -H 'Authorization: Bearer {YOUR_API_KEY}' \ -H 'Content-Type: application/json' \ -d '{ "statement": "DELETE FROM cars WHERE _id = :id", "args": { "id": "car-123" } }'
To delete documents in batches (recommended for large datasets):
cURL
curl -X POST 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute' \ -H 'Authorization: Bearer {YOUR_API_KEY}' \ -H 'Content-Type: application/json' \ -d '{ "statement": "DELETE FROM cars WHERE year < :year LIMIT 30000", "args": { "year": 2020 } }'
Optional transaction ID that ensures consistency across operations. When provided, the operation will only execute if the Big Peer's current transaction ID meets or exceeds this value, preventing stale reads and ensuring causal consistency in your application.
Body
application/json
The DQL statement to execute, along with any parameterized arguments. Using parameterized queries with the args field helps prevent injection attacks and improves query performance through statement caching.
Request parameters for executing a DQL statement. DQL is Ditto's powerful query language that supports complex queries and data modifications.
Named parameters to use in the DQL statement, providing safe value substitution and better query performance
Response
The DQL statement executed successfully. The response includes the results of the query, any mutated document IDs, the transaction ID, and any warnings that occurred during execution. For SELECT queries, results appear in the items array. For mutations, affected IDs appear in mutatedDocumentIds.
Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ditto","colors":{"primary":"#1E1E1E","light":"#F6F6F6","dark":"#1E1E1E"},"logo":{"light":"https://mintcdn.com/ditto-248bc0d1/u_USsYZWDik2feFj/logo/ditto-dark.svg?fit=max\u0026auto=format\u0026n=u_USsYZWDik2feFj\u0026q=85\u0026s=d835cb30d8f1cdedf44672a712e52ed2","dark":"https://mintcdn.com/ditto-248bc0d1/u_USsYZWDik2feFj/logo/ditto-light.svg?fit=max\u0026auto=format\u0026n=u_USsYZWDik2feFj\u0026q=85\u0026s=485f7a6b8ded70a8b3458ca62383883f"},"favicon":"https://mintcdn.com/ditto-248bc0d1/tCfSF1TTvWS_3XsC/favicon.png?fit=max\u0026auto=format\u0026n=tCfSF1TTvWS_3XsC\u0026q=85\u0026s=06b307a481752b4765930fc23d247612","api":{"playground":{"display":"simple"},"examples":{"languages":["curl"]}},"navbar":{"links":[{"icon":"clipboard-list","href":"/release-notes","label":"Release Notes"},{"href":"https://support.ditto.com","label":"Support"}],"primary":{"type":"button","label":"Start Free","href":"https://portal.ditto.live/create-account?_gl=1*1bow2wn*_ga*NTY3MzI4MDE4LjE3Mjc3NjM2Njg.*_ga_D8PMW3CCL2*MTcyNzc2MzY2Ny4xLjAuMTcyNzc2MzY2Ny42MC4wLjA."}},"footer":{"socials":{"x":"https://www.twitter.com/dittolive","github":"https://github.com/getditto","linkedin":"https://www.linkedin.com/company/dittolive"}},"fonts":{"heading":{"family":"Inter","weight":500},"body":{"family":"Inter"}},"styling":{"eyebrows":"section","latex":false},"integrations":{"gtm":{"tagId":"GTM-WCZQB8FP"}},"banner":{"content":"📣 The Ditto Developer Survey is now live! [Take the survey](https://tally.so/r/Np9ZdN).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ditto-248bc0d1","hasAudioNarration":false,"actualSubdomain":"ditto-248bc0d1","customDomains":["docs.ditto.live"],"gitSource":{"type":"github","owner":"getditto","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aea801f9a60fd4f65dacb0a","collectionId":"8ad02f34-2bb8-417b-b9b9-7f07417c44a0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aea801f9a60fd4f65dacb0a"},"feedback":{"thumbs":true,"issues":true,"contextualFeedback":{"allowEmail":true}},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed26a88c9b42d4fc5d092e","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Build with the SDK","count":209},{"language":"default","tag":"SDKs","count":77},{"language":"default","tag":"Reference","count":53},{"language":"default","tag":"Overview \u0026 Setup","count":33},{"language":"default","tag":"Query Language (DQL)","count":32},{"language":"default","tag":"Cloud Platform","count":30},{"language":"default","tag":"Deploying your App","count":23},{"language":"default","tag":"Migration Guides","count":20},{"language":"default","tag":"Getting Started","count":17},{"language":"default","tag":"Accessing Data","count":16}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"@font-face{font-family:'Kairos Sans';src:url('https://cdn.prod.website-files.com/6761335affb7c1ca9aae00dd/676134b94c85d94594f80209_KairosSans_Variable.ttf');font-display:swap;font-weight:500;font-style:normal}@font-face{font-family:'Aeonik Fono';src:url('https://cdn.prod.website-files.com/6761335affb7c1ca9aae00dd/6761352bf250ec43e156773b_AeonikFono-Medium.woff2');font-display:swap;font-weight:400;font-style:normal}#header a,.eyebrow{font-family:'Aeonik Fono';text-transform:uppercase}#header p{font-weight:500}#navbar a,button{font-family:'Aeonik Fono';text-transform:uppercase}h1{font-family:'Kairos Sans';letter-spacing:normal!important;font-variation-settings:\"wdth\" 112}#table-of-contents{font-family:'Aeonik Fono';text-transform:uppercase}a.card.block h2{font-family:'Aeonik Fono';font-weight:400;text-transform:uppercase}html[data-current-path^=\"/sdk/v4\"] header a[href=\"/release-notes\"]{display:none}.prose .rn-overview a{border-bottom:0;font-weight:500}.prose .rn-overview a:hover,.prose .rn-overview a:focus-visible{border-bottom:1px solid rgb(var(--primary))}.prose .rn-summary a{border-bottom:0}.prose .rn-summary a:hover,.prose .rn-summary a:focus-visible{border-bottom:1px solid rgb(var(--primary))}"}],"page":{"pagePath":"cloud/http-api/api/post-storeexecute","slug":"/cloud/http-api/api/post-storeexecute","pageMetadata":{"title":"Execute a DQL query","openapi":"post /store/execute","description":"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.","href":"/cloud/http-api/api/post-storeexecute"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`All requests to this endpoint require authentication using an API key or JWT token in the `,_jsx(_components.code,{children:`Authorization: Bearer`}),` header. For detailed instructions on creating and managing API keys, see `,_jsx(_components.a,{href:`/cloud/http-api/auth-and-params#including-the-api-key`,children:`Auth and Parameters`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-versions`,children:`API versions`}),`\n`,_jsxs(_components.p,{children:[`This endpoint is available at both `,_jsx(_components.code,{children:`/api/v4/store/execute`}),` and `,_jsx(_components.code,{children:`/api/v5/store/execute`}),`. The v5 API defaults to `,_jsx(_components.code,{children:`DQL_STRICT_MODE=false`}),`, which treats nested objects as MAPs instead of REGISTERs. For more information, see `,_jsx(_components.a,{href:`/cloud/http-api/getting-started#api-v4-vs-v5`,children:`API v4 vs v5`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(_components.p,{children:[`The following examples demonstrate common DQL operations using curl. Replace `,_jsx(_components.code,{children:`{YOUR_CLOUD_URL_ENDPOINT}`}),` with your Cloud URL Endpoint from the portal (see `,_jsx(_components.a,{href:`/cloud/http-api/getting-started#getting-your-cloud-url-endpoint`,children:`Getting your Cloud URL Endpoint`}),`) and `,_jsx(_components.code,{children:`{YOUR_API_KEY}`}),` with your API key.`]}),`\n`,_jsx(Heading,{level:`3`,id:`insert-a-document`,children:`Insert a document`}),`\n`,_jsx(_components.p,{children:`Insert a new document into a collection:`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"INSERT INTO cars DOCUMENTS (:newCar)\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"newCar\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"_id\": \"car-123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"make\": \"Toyota\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"Camry\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"year\": 2024,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"color\": \"blue\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`select-documents`,children:`Select documents`}),`\n`,_jsx(_components.p,{children:`Query documents from a collection:`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"SELECT * FROM cars WHERE color = :color\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"color\": \"blue\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`update-a-document`,children:`Update a document`}),`\n`,_jsx(_components.p,{children:`Update an existing document:`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"UPDATE cars SET color = :newColor WHERE _id = :id\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"newColor\": \"red\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\": \"car-123\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`delete-a-document`,children:`Delete a document`}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important:`}),` The `,_jsx(_components.code,{children:`DELETE`}),` operation permanently removes documents from the Ditto system. Deleted documents cannot be recovered. For detailed guidance on delete behavior, tombstones, and best practices, see `,_jsx(_components.a,{href:`/sdk/latest/crud/delete`,children:`Removing Documents`}),`.`]}),_jsx(_components.p,{children:`Key considerations:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Deleting large numbers of documents (50,000+) at once can impact system performance. Use `,_jsx(_components.code,{children:`LIMIT`}),` to batch deletions.`]}),`\n`,_jsx(_components.li,{children:`Concurrent delete and update operations on the same document can result in unexpected “husked documents.”`}),`\n`,_jsxs(_components.li,{children:[`Consider using the soft-delete pattern or `,_jsx(_components.code,{children:`EVICT`}),` for local-only removal instead of permanent deletion.`]}),`\n`]})]}),`\n`,_jsx(_components.p,{children:`Delete a document from a collection:`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"DELETE FROM cars WHERE _id = :id\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\": \"car-123\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`To delete documents in batches (recommended for large datasets):`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"DELETE FROM cars WHERE year \u003c :year LIMIT 30000\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"year\": 2020`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`upsert-a-document`,children:`Upsert a document`}),`\n`,_jsx(_components.p,{children:`Insert a document or update it if it already exists:`}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{YOUR_CLOUD_URL_ENDPOINT}/api/v5/store/execute'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer {YOUR_API_KEY}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"statement\": \"INSERT INTO cars DOCUMENTS (:car) ON ID CONFLICT DO UPDATE\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"args\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"car\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"_id\": \"car-123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"make\": \"Toyota\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"Camry\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"year\": 2024,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"color\": \"green\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mileage\": 15000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`A successful response includes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`transactionId`}),`: The transaction ID for this operation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`queryType`}),`: The type of query executed (e.g., “select”, “insert”, “update”, “delete”)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`items`}),`: For SELECT queries, the array of matching documents`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mutatedDocumentIds`}),`: For mutations, the IDs of affected documents`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-reference`,children:`API reference`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Execute a DQL query","openapi":"post /store/execute","description":"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.","href":"/cloud/http-api/api/post-storeexecute"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"API versions","slug":"api-versions","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Insert a document","slug":"insert-a-document","depth":3,"children":[]},{"title":"Select documents","slug":"select-documents","depth":3,"children":[]},{"title":"Update a document","slug":"update-a-document","depth":3,"children":[]},{"title":"Delete a document","slug":"delete-a-document","depth":3,"children":[]},{"title":"Upsert a document","slug":"upsert-a-document","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"API reference","slug":"api-reference","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ditto-248bc0d1/370d4f3cd5a1175c/inkeep.js","/_mintlify/custom/ditto-248bc0d1/c260eb4e17881548/release-notes-filters.js"],"openApiReferenceData":{"operation":{"description":"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.","summary":"Execute a DQL query","operationId":"execute_endpoint","parameters":["22960ed5-517f-4de5-8282-d9202c45790c"],"requestBody":"4a42e42f-e776-47a8-9363-9ce793ccb40b","responses":{"200":"a7cf28d8-5b80-4e5d-9f2b-a480bf8bff99","400":"30b69c97-58cf-449e-b5fe-1defc6bd2f4e","401":"749a9418-4564-4bc7-8562-d0f9e240675e","404":"8cbcc088-7dfb-45da-bcad-f1de1f03237c","408":"27000f1e-6f2a-4cbf-8d47-0d71e9b692ec","500":"faf3f746-88e5-420a-8aa8-217edbd1a125","503":"d11d29ba-1de5-4594-99f2-a9a83379ce96"},"deprecated":false,"method":"post","type":"path","servers":["6c9886a2-e76c-4287-96db-56cabb181a57"],"security":["732cd3b6-8ff2-454c-8678-ce904f675525"],"path":"/store/execute","baseUrlOptions":["{base_url}/api/v4"],"title":"Execute a DQL query","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"22960ed5-517f-4de5-8282-d9202c45790c":{"name":"X-DITTO-TXN-ID","in":"header","description":"Optional transaction ID that ensures consistency across operations. When provided, the operation will only execute if the Big Peer's current transaction ID meets or exceeds this value, preventing stale reads and ensuring causal consistency in your application.","required":false,"deprecated":false,"schema":{"type":"integer","format":"int64","isRequired":false,"description":"Optional transaction ID that ensures consistency across operations. When provided, the operation will only execute if the Big Peer's current transaction ID meets or exceeds this value, preventing stale reads and ensuring causal consistency in your application.","uniqueKey":"","typeLabel":"integer\u003cint64>"}}},"requestBody":{"description":"The DQL statement to execute, along with any parameterized arguments. Using parameterized queries with the args field helps prevent injection attacks and improves query performance through statement caching.","content":{"application/json":{"schema":{"type":"object","description":"Request parameters for executing a DQL statement. DQL is Ditto's powerful query language that supports complex queries and data modifications.","required":["statement"],"properties":{"statement":{"type":"string","description":"The DQL statement to execute. See https://docs.ditto.live/dql-guide for comprehensive documentation on DQL syntax and features.","isRequired":true,"uniqueKey":"statement","typeLabel":"string"},"args":{"description":"Named parameters to use in the DQL statement, providing safe value substitution and better query performance","uniqueKey":"args","typeLabel":"any"}},"example":{"statement":"SELECT * FROM people WHERE favoriteBook.title = :title","args":{"title":"The Great Gatsby"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statement":"SELECT * FROM people WHERE favoriteBook.title = :title","args":{"title":"The Great Gatsby"}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"a7cf28d8-5b80-4e5d-9f2b-a480bf8bff99":{"description":"The DQL statement executed successfully. The response includes the results of the query, any mutated document IDs, the transaction ID, and any warnings that occurred during execution. For SELECT queries, results appear in the items array. For mutations, affected IDs appear in mutatedDocumentIds.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"transactionId":100,"queryType":"select","items":[{"_id":1,"name":"Francis","favoriteBook":{"title":"The Great Gatsby","published":1925}}],"mutatedDocumentIds":[],"error":{},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"transactionId":100,"queryType":"select","items":[{"_id":1,"name":"Francis","favoriteBook":{"title":"The Great Gatsby","published":1925}}],"mutatedDocumentIds":[],"error":{},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"30b69c97-58cf-449e-b5fe-1defc6bd2f4e":{"description":"The DQL statement was invalid or malformed. This could be due to syntax errors, invalid collection names, type mismatches, or other query validation failures. Check the error response for detailed information about what went wrong.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"749a9418-4564-4bc7-8562-d0f9e240675e":{"description":"Authentication failed. Ensure you're providing a valid API key or JWT token in the Authorization header and that it has sufficient permissions for the requested operation.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"8cbcc088-7dfb-45da-bcad-f1de1f03237c":{"description":"The requested transaction ID (if specified) is not available on the Big Peer. This typically means the Big Peer has not yet reached that transaction ID or the transaction has been garbage collected.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"27000f1e-6f2a-4cbf-8d47-0d71e9b692ec":{"description":"The query execution timed out. This can happen with complex queries over large datasets or when the system is under heavy load. Consider optimizing your query or adding appropriate indexes.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"faf3f746-88e5-420a-8aa8-217edbd1a125":{"description":"An unexpected server error occurred while executing the query. This could be due to resource constraints, internal errors, or temporary service disruptions. The operation may succeed if retried.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"},"d11d29ba-1de5-4594-99f2-a9a83379ce96":{"description":"The service is temporarily unavailable, typically due to maintenance or capacity issues. Clients should implement exponential backoff and retry the request later.","content":{"application/json":{"schema":{"type":"object","description":"Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.","required":["queryType","items","mutatedDocumentIds","warnings","totalWarningsCount"],"properties":{"items":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"any[]"},"mutatedDocumentIds":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"mutatedDocumentIds.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"mutatedDocumentIds","typeLabel":"any[]"},"queryType":{"type":"string","description":"Indicates the type of query that was executed","isRequired":true,"uniqueKey":"queryType","typeLabel":"string"},"totalWarningsCount":{"type":"integer","format":"int64","description":"Total number of warnings generated during query execution","isRequired":true,"uniqueKey":"totalWarningsCount","typeLabel":"integer\u003cint64>"},"warnings":{"type":"array","items":{"type":"object","description":"Indicates any run-time warnings that might arise during query execution","required":["description"],"properties":{"description":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].description","typeLabel":"string"},"_id":{"oneOf":[{}],"uniqueKey":"warnings.items.[INDEX]._id","typeLabel":"any"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"error":{"type":"object","description":"An error occurred that prevented the query from executing or completing successfully","properties":{"description":{"type":"string","uniqueKey":"error.description","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"transactionId":{"type":"integer","format":"int64","uniqueKey":"transactionId","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"example":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0},"examples":{"Example":{"title":"Example","value":{"queryType":"unknown","items":[],"mutatedDocumentIds":[],"error":{"description":"..."},"warnings":[],"totalWarningsCount":0}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"732cd3b6-8ff2-454c-8678-ce904f675525":{"api_key_or_jwt_token":{"type":"http","scheme":"bearer","bearerFormat":"API Key or JWT","description":"Authentication using either an API key or JWT token in the Authorization header","scopes":[]}}},"servers":{"6c9886a2-e76c-4287-96db-56cabb181a57":{"url":"{base_url}/api/v4","description":"The Ditto Big Peer acts as a central synchronization point and data store in your Ditto network. It coordinates data replication between peers and provides a consistent view of your data.","variables":{"base_url":{"default":"https://YOUR_CLOUD_URL_ENDPOINT","description":"Your Cloud URL Endpoint from the Ditto Portal (Connect via HTTP), prefixed with https:// to form the base URL."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key or JWT","description":"Authentication using either an API key or JWT token in the Authorization header","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Authentication using either an API key or JWT token in the Authorization header","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"api_key_or_jwt_token","name":"Authorization"}],"title":"api_key_or_jwt_token"}]},"originalFileLocation":"cloud/http-api/api/openapi.json"},"subdomain":"ditto-248bc0d1","siteName":"Ditto","title":"Execute a DQL query - Ditto","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-13T20:08:28.162Z","originalFileLocation":"cloud/http-api/api/post-storeexecute.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ditto\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Execute a DQL query - Ditto\">\u003cmeta data-mint-head property=\"og:description\" content=\"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ditto\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ditto-248bc0d1.mintlify.site/_mintlify/api/og/v2?division=HTTP+Data+API\u0026amp;title=Execute+a+DQL+query\u0026amp;description=Execute+a+Ditto+Query+Language+%28DQL%29+statement+against+your+data+store.+DQL+is+a+powerful+query+language+that+supports+complex+queries%2C+updates%2C+and+data+manipu\u0026amp;theme=f28dd55020e1158de447bdec\u0026amp;signature=74d420e639ba388f8a664e270de7252072aaad891f2c6b95f2c81a964ce7f860\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Execute a DQL query - Ditto\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ditto-248bc0d1.mintlify.site/_mintlify/api/og/v2?division=HTTP+Data+API\u0026amp;title=Execute+a+DQL+query\u0026amp;description=Execute+a+Ditto+Query+Language+%28DQL%29+statement+against+your+data+store.+DQL+is+a+powerful+query+language+that+supports+complex+queries%2C+updates%2C+and+data+manipu\u0026amp;theme=f28dd55020e1158de447bdec\u0026amp;signature=74d420e639ba388f8a664e270de7252072aaad891f2c6b95f2c81a964ce7f860\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ditto-248bc0d1/9AZ87A7qeePs6thb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ditto\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E1E1E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cloud/http-api/api/post-storeexecute.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ditto.live/#organization\",\"name\":\"Ditto\",\"url\":\"https://docs.ditto.live\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ditto-248bc0d1/u_USsYZWDik2feFj/logo/ditto-dark.svg?fit=max\u0026auto=format\u0026n=u_USsYZWDik2feFj\u0026q=85\u0026s=d835cb30d8f1cdedf44672a712e52ed2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ditto.live#website\",\"name\":\"Ditto\",\"url\":\"https://docs.ditto.live\",\"publisher\":{\"@id\":\"https://docs.ditto.live/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute#webpage\",\"url\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute\",\"name\":\"Execute a DQL query\",\"description\":\"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\",\"dateModified\":\"2026-02-13T20:08:28.162Z\",\"isPartOf\":{\"@id\":\"https://docs.ditto.live#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HTTP Data API\",\"item\":\"https://docs.ditto.live/cloud/http-api/getting-started\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Execute a DQL query\",\"item\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute#apireference\",\"headline\":\"Execute a DQL query\",\"name\":\"Execute a DQL query\",\"description\":\"Execute a Ditto Query Language (DQL) statement against your data store. DQL is a powerful query language that supports complex queries, updates, and data manipulation. This endpoint serves as the primary interface for running DQL operations. See the comprehensive DQL guide for detailed syntax and examples.\",\"url\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ditto.live/cloud/http-api/api/post-storeexecute#webpage\"},\"dateModified\":\"2026-02-13T20:08:28.162Z\",\"publisher\":{\"@id\":\"https://docs.ditto.live/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ditto.live#website\"}}]}\u003c/script>","siteName":"Ditto","nav":{"global":null,"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/home/introduction"}]},{"tab":"Build with the SDK","icon":{"style":"solid","name":"laptop-mobile"},"versions":[{"version":"v5","groups":[{"group":"Overview \u0026 Setup","pages":[{"title":"SDK v5 Homepage","sidebarTitle":"SDK Home","icon":"house","iconType":"solid","mode":"wide","href":"/sdk/latest/home"},{"title":"What's New in Ditto SDK v5","sidebarTitle":"What's New in v5","icon":"rocket","iconType":"solid","href":"/sdk/latest/v5-whats-new"},{"title":"Quickstart Task Apps - Overview","sidebarTitle":"Quickstart","icon":"rabbit","iconType":"solid","mode":"wide","href":"/sdk/latest/quickstarts/quickstarts-landing"},{"title":"Migration Guide for Atlas Device Sync","icon":"arrow-right-arrow-left","iconType":"solid","href":"/sdk/latest/quickstarts/mongodb-migrationguide"}]},{"group":"SDKs","pages":[{"group":"Swift","icon":{"style":"brands","name":"apple"},"pages":[{"title":"Swift Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/swift"},{"title":"Swift","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/swift"},{"title":"Swift Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/swift"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/swift"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Swift V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/swift-v4"},{"title":"Swift Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/swift-dql"}]},{"title":"Swift","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/swift/DittoSwift/5.2.0/api-reference/documentation/dittoswift/","href":"/sdk/latest/api-reference/swift"}]},{"group":"Kotlin","icon":{"style":"brands","name":"android"},"pages":[{"title":"Kotlin for Android Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/kotlin-android"},{"title":"Kotlin Install Guide","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/kotlin"},{"title":"Kotlin Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/kotlin"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/kotlin"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Kotlin V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/kotlin-v4"},{"title":"Kotlin Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/kotlin-dql"}]},{"group":"Resources","icon":{"style":"solid","name":"box-archive"},"pages":[{"title":"Optimizing Bundle Sizes for Android","href":"/best-practices/optimizing-bundle-sizes-for-android"}]},{"title":"Android","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/kotlin/ditto-kotlin/5.2.0/api-reference/","href":"/sdk/latest/api-reference/kotlin"}]},{"group":"Flutter","icon":{"style":"brands","name":"flutter"},"pages":[{"title":"Flutter Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/flutter"},{"title":"Flutter Install Guide","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/flutter"},{"title":"Flutter Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/flutter"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/flutter"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Flutter V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/flutter-v4"},{"title":"Flutter Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/flutter-dql"}]},{"title":"Flutter","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://pub.dev/documentation/ditto_live/latest/ditto_live/","href":"/sdk/latest/api-reference/flutter"}]},{"group":"React Native","icon":{"style":"brands","name":"react"},"pages":[{"title":"React Native Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/react-native"},{"title":"React Native","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/react-native"},{"title":"React Native Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/react-native"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/react-native"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"React Native V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/react-native-v4"},{"title":"React Native Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/react-native-dql"}]},{"title":"JavaScript","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/js/Ditto/5.2.0/api-reference/","href":"/sdk/latest/api-reference/js"}]},{"group":"JavaScript Web","icon":{"style":"brands","name":"js"},"pages":[{"title":"JavaScript Web Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/javascript-web"},{"title":"JavaScript","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/js"},{"title":"JavaScript Web Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/js-web"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/javascript-web"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"JavaScript Web V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/web-js-v4"},{"title":"JavaScript Web Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/web-js-dql"}]},{"title":"JavaScript","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/js/Ditto/5.2.0/api-reference/","href":"/sdk/latest/api-reference/js"}]},{"group":"JavaScript Node.js","icon":{"style":"brands","name":"js"},"pages":[{"title":"JavaScript Console App Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/javascript-console"},{"title":"JavaScript","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/js"},{"title":"Node.js \u0026 Electron Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/nodejs"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/javascript-nodejs"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Node.js V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/node-js-v4"},{"title":"Node.js Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/node-js-dql"}]},{"title":"JavaScript","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/js/Ditto/5.2.0/api-reference/","href":"/sdk/latest/api-reference/js"}]},{"group":"Java Server","icon":{"style":"brands","name":"java"},"pages":[{"title":"Java Server Quickstart","sidebarTitle":"Quickstart (Server)","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/java-server"},{"title":"Java for Servers \u0026 Desktop","sidebarTitle":"Install Guide (Server)","icon":"download","iconType":"solid","href":"/sdk/latest/install-guides/java/server"},{"title":"Java Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/java"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/java"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Java V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/java-v4"},{"title":"Java Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/java-dql"}]},{"title":"Java Server","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"http://software.ditto.live/java/ditto-java/5.2.0/api-reference/","href":"/sdk/latest/api-reference/java"}]},{"group":"C# - .NET","icon":{"style":"brands","name":"microsoft"},"pages":[{"title":".NET (C#) Console App Quickstart","sidebarTitle":"Quickstart (Console)","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/dotnet-console"},{"title":".NET (C#) MAUI Quickstart","sidebarTitle":"Quickstart (Maui)","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/dotnet-maui"},{"title":"C#","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/c-sharp"},{"title":"C# Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/c-sharp"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/c-sharp"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"C# V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/c-sharp-v4"},{"title":"C# Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/c-sharp-dql"}]},{"title":"C#","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/dotnet/Ditto/5.2.0/api-reference/","href":"/sdk/latest/api-reference/c-sharp"}]},{"group":"C++","icon":{"style":"solid","name":"code"},"pages":[{"title":"C++ Console App Quickstart","sidebarTitle":"Quickstart (Console)","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/cpp-console"},{"title":"C++","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/cpp"},{"title":"C++ Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/cpp"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/cpp"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"C++ V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/cpp-v4"},{"title":"C++ Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/cpp-dql"}]},{"title":"C++","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/cpp/Ditto/5.2.0/api-reference/","href":"/sdk/latest/api-reference/cpp"}]},{"group":"Rust","icon":{"style":"brands","name":"rust"},"pages":[{"title":"Rust Console App Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/rust-console"},{"title":"Rust","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/rust"},{"title":"Rust Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/rust"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/rust"},{"group":"Migration Guides","icon":{"style":"solid","name":"arrow-up-big-small"},"pages":[{"title":"Rust V4→V5 API Migration Guide","sidebarTitle":"V4→V5 Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/rust-v4"},{"title":"Rust Legacy→DQL Migration Guide","sidebarTitle":"DQL Migration Guide","icon":"arrow-up-big-small","iconType":"solid","href":"/sdk/latest/migration-guides/rust-dql"}]},{"title":"Rust","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/rust/Ditto/5.2.0/x86_64-unknown-linux-gnu/docs/dittolive_ditto/index.html","href":"/sdk/latest/api-reference/rust"}]},{"group":"Python (Preview)","icon":{"style":"brands","name":"python"},"pages":[{"title":"Python Console App Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/python"},{"title":"Python - Public Preview","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/python"},{"title":"Python Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/python"},{"title":"Python","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/python/dittolive-ditto/5.2.0.dev0/api-reference/ditto.html","href":"/sdk/latest/api-reference/python"}]},{"group":"Go (Preview)","icon":{"style":"brands","name":"golang"},"pages":[{"title":"Go Console App Quickstart","sidebarTitle":"Quickstart","icon":"rabbit-running","iconType":"solid","href":"/sdk/latest/quickstarts/go"},{"title":"Go - Public Preview","sidebarTitle":"Install Guide","icon":"book","iconType":"solid","href":"/sdk/latest/install-guides/go"},{"title":"Go Compatibility","sidebarTitle":"Compatibility","icon":"puzzle","iconType":"solid","href":"/sdk/latest/compatibility/go"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/sdk/latest/release-notes-hub/go"},{"title":"Go","sidebarTitle":"API Docs","icon":"code","iconType":"solid","url":"https://software.ditto.live/go/Ditto/5.0.0-go-preview.3/docs/github.com/getditto/ditto-go-sdk/v5/ditto/index.html","href":"/sdk/latest/api-reference/go"}]}]},{"group":"Accessing Data","pages":[{"title":"Creating Documents","icon":"file-plus","href":"/sdk/latest/crud/create"},{"title":"Reading Documents","icon":"book-open-reader","href":"/sdk/latest/crud/read"},{"title":"Updating Documents","icon":"pen-to-square","href":"/sdk/latest/crud/update"},{"title":"Removing Documents","icon":"trash-can","href":"/sdk/latest/crud/delete"},{"title":"Reacting to Data Changes","icon":"eye","href":"/sdk/latest/crud/observing-data-changes"},{"title":"Large Binary Files","icon":"link","href":"/sdk/latest/crud/working-with-attachments"},{"title":"Working with EJSON","icon":"brackets-curly","iconType":"solid","href":"/sdk/latest/crud/working-with-ejson"},{"title":"Transactions","icon":"database","href":"/sdk/latest/crud/transactions"}]},{"group":"Syncing Data","icon":{"style":"solid","name":"rotate"},"pages":[{"title":"Managing Subscriptions","icon":"rotate","href":"/sdk/latest/sync/syncing-data"},{"title":"Sync Handling","icon":"rotate","iconType":"solid","href":"/best-practices/sync-handling"},{"group":"Monitoring Sync Status","icon":{"name":"file-check"},"pages":[{"title":"Tracking Local Commits","icon":"code-commit","href":"/sdk/latest/sync/tracking-local-commits"},{"title":"Tracking Cloud Sync Status","sidebarTitle":"Tracking Cloud Sync","icon":"cloud-check","href":"/sdk/latest/sync/cloud-sync-status"},{"title":"System Sync Collection Reference","sidebarTitle":"System Sync Collection","icon":"folder-gear","href":"/sdk/latest/sync/monitoring-sync-status"}]},{"title":"Configuring Collection Sync","sidebarTitle":"Configuring Collection Sync","icon":"telescope","href":"/sdk/latest/sync/sync-scopes"},{"title":"Device Storage Management","icon":"database","href":"/sdk/latest/sync/device-storage-management"},{"title":"Encryption at Rest","icon":"lock","href":"/sdk/latest/sync/encryption-at-rest"},{"title":"Data Streams","icon":"arrow-right-arrow-left","tag":"Preview","href":"/sdk/latest/sync/data-streams"}]},{"group":"Authentication and Authorization","pages":[{"title":"Authentication Providers","icon":"cloud","href":"/sdk/latest/auth-and-authorization/cloud-authentication"},{"title":"Authorizing Users","icon":"users","href":"/sdk/latest/auth-and-authorization/data-authorization"},{"title":"Certificate-Based Security","icon":"certificate","iconType":"solid","href":"/sdk/latest/auth-and-authorization/certificate-based-security"}]},{"group":"Managing the Mesh","pages":[{"title":"Using Mesh Presence","icon":"circle-nodes","href":"/sdk/latest/sync/using-mesh-presence"},{"title":"Customizing Transports","icon":"wrench","href":"/sdk/latest/sync/customizing-transport-configurations"},{"title":"Limiting Connections","icon":"scissors","href":"/sdk/latest/sync/handling-connection-requests"}]},{"group":"Deploying your App","pages":[{"group":"Configuring Hardware","icon":{"name":"network-wired"},"pages":[{"title":"Redundant Bluetooth","icon":"bluetooth","href":"/sdk/latest/sync/managing-redundant-bluetooth-le-connections"},{"title":"Bluetooth on Linux","icon":"linux","href":"/sdk/latest/deployment/bluetooth-on-linux"},{"title":"Local Area Network","icon":"wifi","href":"/sdk/latest/deployment/network-deployment"},{"title":"Optimizing Ditto Wi-Fi Aware for Your Android Hardware","sidebarTitle":"Android Wi-Fi Chipset Considerations","icon":"wifi","href":"/sdk/latest/deployment/wifi-aware-chipset-considerations"}]},{"title":"Testing","icon":"vial","href":"/sdk/latest/deployment/testing"},{"title":"Developer Tools","icon":"code","href":"/sdk/latest/deployment/integrate-ditto-tools-for-kotlin-swift-and-c-net-in-15-minutes"},{"title":"Remote Observability","icon":"eye","href":"/sdk/latest/deployment/device-observability-and-ditto-logs"},{"title":"Getting System Information","icon":"circle-info","href":"/sdk/latest/deployment/getting-system-information"},{"title":"Capturing Support Bundles","icon":"box-archive","href":"/sdk/latest/deployment/support-bundles"},{"title":"SDK Logging","icon":"file-invoice","href":"/sdk/latest/deployment/logging"},{"title":"Optimizing Server Performance","icon":"server","href":"/sdk/latest/deployment/setting-routing-hints"},{"title":"Troubleshooting Guide","icon":"wrench","iconType":"solid","href":"/sdk/latest/deployment/troubleshooting"}]}]},{"version":"v4","pages":[{"title":"v4","href":"/sdk/v4/home"}]}]},{"tab":"Query Language (DQL)","icon":{"style":"regular","name":"file-magnifying-glass"},"pages":[{"title":"Query Language (DQL)","href":"/dql/dql"}]},{"tab":"Cloud Platform","icon":{"style":"regular","name":"cloud"},"groups":[{"group":"Overview","pages":[{"title":"Cloud Platform Overview","sidebarTitle":"Overview","icon":"server","iconType":"solid","mode":"wide","href":"/cloud/overview"},{"title":"Release Notes","sidebarTitle":"Release Notes","icon":"clipboard-list","iconType":"solid","mode":"wide","href":"/cloud/release-notes-hub"}]},{"group":"Public Cloud (BYOC)","icon":{"style":"solid","name":"cloud"},"pages":[{"title":"Bring Your Own Cloud (BYOC)","sidebarTitle":"Deployment Overview","icon":"server","iconType":"solid","href":"/cloud/public-cloud/overview"},{"title":"AWS Setup Guide for Ditto BYOC","sidebarTitle":"AWS","icon":"aws","iconType":"duotone","href":"/cloud/public-cloud/aws"},{"title":"GCP Setup Guide for Ditto BYOC","sidebarTitle":"GCP","icon":"google","iconType":"duotone","href":"/cloud/public-cloud/gcp"}]},{"group":"Cloud Portal","icon":{"style":"solid","name":"browser"},"pages":[{"title":"Creating a Ditto Account","mode":"wide","icon":"user","iconType":"solid","href":"/cloud/portal/creating-a-ditto-account"},{"title":"Creating a New Database","icon":"mobile","iconType":"solid","href":"/cloud/portal/creating-a-new-app"},{"title":"Getting SDK Connection Details","mode":"wide","icon":"link","iconType":"solid","href":"/cloud/portal/getting-sdk-connection-details"},{"title":"Data Browser and Editor","icon":"browser","iconType":"solid","href":"/cloud/portal/data-browser-and-editor"},{"title":"Role-Based Access Control","icon":"users","iconType":"solid","href":"/cloud/portal/role-based-access-control"},{"title":"Using the Device Dashboard","icon":"gauge","iconType":"solid","href":"/cloud/portal/capturing-small-peer-info"},{"title":"Troubleshooting","icon":"wrench","href":"/cloud/portal/troubleshooting"}]},{"group":"HTTP Data API","icon":{"style":"solid","name":"globe"},"pages":[{"title":"Getting Started","icon":"rocket","iconType":"solid","href":"/cloud/http-api/getting-started"},{"title":"Auth and Parameters","description":"The HTTP API is protected by an API key, passed in as an Authorization header. A number of other parameters are also permitted for each request.","icon":"key","iconType":"solid","href":"/cloud/http-api/auth-and-params"},{"title":"Execute a DQL query","openapi":"post /store/execute","href":"/cloud/http-api/api/post-storeexecute"},{"title":"HTTP API - Attachments","description":"With the `ATTACHMENT` data type, you can link extensive binary data, such as avatar images, videos, and PDFs, to a document.","icon":"paperclip","iconType":"solid","href":"/cloud/http-api/attachments"},{"group":"Legacy HTTP API","icon":{"style":"solid","name":"puzzle-piece"},"pages":[{"title":"Find docs with Legacy QL","openapi":"post /store/find","href":"/cloud/http-api/api/post-storefind"},{"title":"Lookup docs by ID with Legacy QL","openapi":"post /store/findbyid","href":"/cloud/http-api/api/post-storefindbyid"},{"title":"Write docs with Legacy QL","openapi":"post /store/write","href":"/cloud/http-api/api/post-storewrite"},{"title":"Count docs with Legacy QL","openapi":"post /store/count","href":"/cloud/http-api/api/post-storecount"}]}]},{"group":"Data Integration","pages":[{"title":"Change Data Capture","icon":"clock-rotate-left","iconType":"solid","href":"/cloud/cdc"},{"title":"MongoDB Connector","icon":"plug-circle-bolt","iconType":"solid","href":"/cloud/mongodb-connector"},{"title":"Webhook Security","icon":"shield-halved","href":"/cloud/webhook-security"}]},{"group":"Data Authentication","icon":{"style":"solid","name":"lock"},"pages":[{"title":"Revocations","icon":"ban","href":"/cloud/revocations"}]},{"group":"Reference","pages":[{"group":"Backend Architecture","icon":{"style":"solid","name":"cubes-stacked"},"pages":[{"title":"Backend Architecture","sidebarTitle":"Overview","href":"/cloud/backend-architecture"},{"title":"Cloud-Optional Design","href":"/cloud/backend-architecture/cloud-optional-design"},{"title":"Timestamps","href":"/cloud/backend-architecture/timestamps"},{"title":"Causally Consistent Transactions","iconType":"solid","href":"/cloud/backend-architecture/causally-consistent-design"},{"title":"Failure Handling","href":"/cloud/backend-architecture/failure-handling"}]},{"title":"Cloud Compatibility Map","mode":"wide","icon":"badge-check","iconType":"solid","href":"/cloud/compatibility-map"}]}]},{"tab":"Ditto Server","hidden":true,"pages":[{"title":"Ditto Server","href":"/ditto-server/operator/operator-quickstart"}]},{"tab":"Ditto Edge Server","hidden":true,"pages":[{"title":"Ditto Edge Server","href":"/edge-server/overview"}]}]},"basePath":"","title":"Execute a DQL query - Ditto","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-DcUtcwZ_.js","dist-CJ9Oly2E.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-C5EfhVm0.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","AssistantPageLink-Mk6P3qvh.js"]}