[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-microsoft-azure-cosmos-ts":3,"mdc-1yrm97-key":44,"related-repo-microsoft-azure-cosmos-ts":8999,"related-org-microsoft-azure-cosmos-ts":9110},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":39,"sourceUrl":42,"mdContent":43},"azure-cosmos-ts","build applications with Azure Cosmos DB","Azure Cosmos DB JavaScript\u002FTypeScript SDK (@azure\u002Fcosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: \"Cosmos DB\", \"@azure\u002Fcosmos\", \"CosmosClient\", \"document CRUD\", \"NoSQL queries\", \"bulk operations\", \"partition key\", \"container.items\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"microsoft","Microsoft","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmicrosoft.png",[12,16,19,22,23],{"name":13,"slug":14,"type":15},"Cosmos DB","cosmos-db","tag",{"name":17,"slug":18,"type":15},"TypeScript","typescript",{"name":20,"slug":21,"type":15},"NoSQL","nosql",{"name":9,"slug":8,"type":15},{"name":24,"slug":25,"type":15},"Database","database",2804,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","2026-07-03T16:31:19.368382","MIT",315,[32,33,34,35,36,37,38],"agent-skills","agents","azure","foundry","mcp","sdk","skills",{"repoUrl":27,"stars":26,"forks":30,"topics":40,"description":41},[32,33,34,35,36,37,38],"Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Ftree\u002FHEAD\u002F.github\u002Fplugins\u002Fazure-sdk-typescript\u002Fskills\u002Fazure-cosmos-ts","---\nname: azure-cosmos-ts\ndescription: |\n  Azure Cosmos DB JavaScript\u002FTypeScript SDK (@azure\u002Fcosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: \"Cosmos DB\", \"@azure\u002Fcosmos\", \"CosmosClient\", \"document CRUD\", \"NoSQL queries\", \"bulk operations\", \"partition key\", \"container.items\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n  package: '@azure\u002Fcosmos'\n---\n\n# @azure\u002Fcosmos (TypeScript\u002FJavaScript)\n\nData plane SDK for Azure Cosmos DB NoSQL API operations — CRUD on documents, queries, bulk operations.\n\n> **⚠️ Data vs Management Plane**\n> - **This SDK (@azure\u002Fcosmos)**: CRUD operations on documents, queries, stored procedures\n> - **Management SDK (@azure\u002Farm-cosmosdb)**: Create accounts, databases, containers via ARM\n\n## Installation\n\n```bash\nnpm install @azure\u002Fcosmos @azure\u002Fidentity\n```\n\n**Current Version**: 4.9.0  \n**Node.js**: >= 20.0.0\n\n## Environment Variables\n\n```bash\nCOSMOS_ENDPOINT=https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\nCOSMOS_DATABASE=\u003Cdatabase-name>\nCOSMOS_CONTAINER=\u003Ccontainer-name>\n# For key-based auth only (prefer AAD)\nCOSMOS_KEY=\u003Caccount-key>\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n```\n\n## Authentication\n\n### Microsoft Entra Token Credential (Recommended)\n\n```typescript\nimport { CosmosClient } from \"@azure\u002Fcosmos\";\nimport { DefaultAzureCredential, ManagedIdentityCredential } from \"@azure\u002Fidentity\";\n\n\u002F\u002F Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\nconst credential = new DefaultAzureCredential({requiredEnvVars: [\"AZURE_TOKEN_CREDENTIALS\"]});\n\u002F\u002F Or use a specific credential directly in production:\n\u002F\u002F See https:\u002F\u002Flearn.microsoft.com\u002Fjavascript\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-node-latest#credential-classes\n\u002F\u002F const credential = new ManagedIdentityCredential();\n\nconst client = new CosmosClient({\n  endpoint: process.env.COSMOS_ENDPOINT!,\n  aadCredentials: credential,\n});\n```\n\n### Key-Based Authentication\n\n```typescript\nimport { CosmosClient } from \"@azure\u002Fcosmos\";\n\n\u002F\u002F Option 1: Endpoint + Key\nconst client = new CosmosClient({\n  endpoint: process.env.COSMOS_ENDPOINT!,\n  key: process.env.COSMOS_KEY!,\n});\n\n\u002F\u002F Option 2: Connection String\nconst client = new CosmosClient(process.env.COSMOS_CONNECTION_STRING!);\n```\n\n## Resource Hierarchy\n\n```\nCosmosClient\n└── Database\n    └── Container\n        ├── Items (documents)\n        ├── Scripts (stored procedures, triggers, UDFs)\n        └── Conflicts\n```\n\n## Core Operations\n\n### Database & Container Setup\n\n```typescript\nconst { database } = await client.databases.createIfNotExists({\n  id: \"my-database\",\n});\n\nconst { container } = await database.containers.createIfNotExists({\n  id: \"my-container\",\n  partitionKey: { paths: [\"\u002FpartitionKey\"] },\n});\n```\n\n### Create Document\n\n```typescript\ninterface Product {\n  id: string;\n  partitionKey: string;\n  name: string;\n  price: number;\n}\n\nconst item: Product = {\n  id: \"product-1\",\n  partitionKey: \"electronics\",\n  name: \"Laptop\",\n  price: 999.99,\n};\n\nconst { resource } = await container.items.create\u003CProduct>(item);\n```\n\n### Read Document\n\n```typescript\nconst { resource } = await container\n  .item(\"product-1\", \"electronics\") \u002F\u002F id, partitionKey\n  .read\u003CProduct>();\n\nif (resource) {\n  console.log(resource.name);\n}\n```\n\n### Update Document (Replace)\n\n```typescript\nconst { resource: existing } = await container\n  .item(\"product-1\", \"electronics\")\n  .read\u003CProduct>();\n\nif (existing) {\n  existing.price = 899.99;\n  const { resource: updated } = await container\n    .item(\"product-1\", \"electronics\")\n    .replace\u003CProduct>(existing);\n}\n```\n\n### Upsert Document\n\n```typescript\nconst item: Product = {\n  id: \"product-1\",\n  partitionKey: \"electronics\",\n  name: \"Laptop Pro\",\n  price: 1299.99,\n};\n\nconst { resource } = await container.items.upsert\u003CProduct>(item);\n```\n\n### Delete Document\n\n```typescript\nawait container.item(\"product-1\", \"electronics\").delete();\n```\n\n### Patch Document (Partial Update)\n\n```typescript\nimport { PatchOperation } from \"@azure\u002Fcosmos\";\n\nconst operations: PatchOperation[] = [\n  { op: \"replace\", path: \"\u002Fprice\", value: 799.99 },\n  { op: \"add\", path: \"\u002Fdiscount\", value: true },\n  { op: \"remove\", path: \"\u002FoldField\" },\n];\n\nconst { resource } = await container\n  .item(\"product-1\", \"electronics\")\n  .patch\u003CProduct>(operations);\n```\n\n## Queries\n\n### Simple Query\n\n```typescript\nconst { resources } = await container.items\n  .query\u003CProduct>(\"SELECT * FROM c WHERE c.price \u003C 1000\")\n  .fetchAll();\n```\n\n### Parameterized Query (Recommended)\n\n```typescript\nimport { SqlQuerySpec } from \"@azure\u002Fcosmos\";\n\nconst querySpec: SqlQuerySpec = {\n  query: \"SELECT * FROM c WHERE c.partitionKey = @category AND c.price \u003C @maxPrice\",\n  parameters: [\n    { name: \"@category\", value: \"electronics\" },\n    { name: \"@maxPrice\", value: 1000 },\n  ],\n};\n\nconst { resources } = await container.items\n  .query\u003CProduct>(querySpec)\n  .fetchAll();\n```\n\n### Query with Pagination\n\n```typescript\nconst queryIterator = container.items.query\u003CProduct>(querySpec, {\n  maxItemCount: 10, \u002F\u002F Items per page\n});\n\nwhile (queryIterator.hasMoreResults()) {\n  const { resources, continuationToken } = await queryIterator.fetchNext();\n  console.log(`Page with ${resources?.length} items`);\n  \u002F\u002F Use continuationToken for next page if needed\n}\n```\n\n### Cross-Partition Query\n\n```typescript\nconst { resources } = await container.items\n  .query\u003CProduct>(\n    \"SELECT * FROM c WHERE c.price > 500\",\n    { enableCrossPartitionQuery: true }\n  )\n  .fetchAll();\n```\n\n## Bulk Operations\n\n### Execute Bulk Operations\n\n```typescript\nimport { BulkOperationType, OperationInput } from \"@azure\u002Fcosmos\";\n\nconst operations: OperationInput[] = [\n  {\n    operationType: BulkOperationType.Create,\n    resourceBody: { id: \"1\", partitionKey: \"cat-a\", name: \"Item 1\" },\n  },\n  {\n    operationType: BulkOperationType.Upsert,\n    resourceBody: { id: \"2\", partitionKey: \"cat-a\", name: \"Item 2\" },\n  },\n  {\n    operationType: BulkOperationType.Read,\n    id: \"3\",\n    partitionKey: \"cat-b\",\n  },\n  {\n    operationType: BulkOperationType.Replace,\n    id: \"4\",\n    partitionKey: \"cat-b\",\n    resourceBody: { id: \"4\", partitionKey: \"cat-b\", name: \"Updated\" },\n  },\n  {\n    operationType: BulkOperationType.Delete,\n    id: \"5\",\n    partitionKey: \"cat-c\",\n  },\n  {\n    operationType: BulkOperationType.Patch,\n    id: \"6\",\n    partitionKey: \"cat-c\",\n    resourceBody: {\n      operations: [{ op: \"replace\", path: \"\u002Fname\", value: \"Patched\" }],\n    },\n  },\n];\n\nconst response = await container.items.executeBulkOperations(operations);\n\nresponse.forEach((result, index) => {\n  if (result.statusCode >= 200 && result.statusCode \u003C 300) {\n    console.log(`Operation ${index} succeeded`);\n  } else {\n    console.error(`Operation ${index} failed: ${result.statusCode}`);\n  }\n});\n```\n\n## Partition Keys\n\n### Simple Partition Key\n\n```typescript\nconst { container } = await database.containers.createIfNotExists({\n  id: \"products\",\n  partitionKey: { paths: [\"\u002Fcategory\"] },\n});\n```\n\n### Hierarchical Partition Key (MultiHash)\n\n```typescript\nimport { PartitionKeyDefinitionVersion, PartitionKeyKind } from \"@azure\u002Fcosmos\";\n\nconst { container } = await database.containers.createIfNotExists({\n  id: \"orders\",\n  partitionKey: {\n    paths: [\"\u002FtenantId\", \"\u002FuserId\", \"\u002FsessionId\"],\n    version: PartitionKeyDefinitionVersion.V2,\n    kind: PartitionKeyKind.MultiHash,\n  },\n});\n\n\u002F\u002F Operations require array of partition key values\nconst { resource } = await container.items.create({\n  id: \"order-1\",\n  tenantId: \"tenant-a\",\n  userId: \"user-123\",\n  sessionId: \"session-xyz\",\n  total: 99.99,\n});\n\n\u002F\u002F Read with hierarchical partition key\nconst { resource: order } = await container\n  .item(\"order-1\", [\"tenant-a\", \"user-123\", \"session-xyz\"])\n  .read();\n```\n\n## Error Handling\n\n```typescript\nimport { ErrorResponse } from \"@azure\u002Fcosmos\";\n\ntry {\n  const { resource } = await container.item(\"missing\", \"pk\").read();\n} catch (error) {\n  if (error instanceof ErrorResponse) {\n    switch (error.code) {\n      case 404:\n        console.log(\"Document not found\");\n        break;\n      case 409:\n        console.log(\"Conflict - document already exists\");\n        break;\n      case 412:\n        console.log(\"Precondition failed (ETag mismatch)\");\n        break;\n      case 429:\n        console.log(\"Rate limited - retry after:\", error.retryAfterInMs);\n        break;\n      default:\n        console.error(`Cosmos error ${error.code}: ${error.message}`);\n    }\n  }\n  throw error;\n}\n```\n\n## Optimistic Concurrency (ETags)\n\n```typescript\n\u002F\u002F Read with ETag\nconst { resource, etag } = await container\n  .item(\"product-1\", \"electronics\")\n  .read\u003CProduct>();\n\nif (resource && etag) {\n  resource.price = 899.99;\n  \n  try {\n    \u002F\u002F Replace only if ETag matches\n    await container.item(\"product-1\", \"electronics\").replace(resource, {\n      accessCondition: { type: \"IfMatch\", condition: etag },\n    });\n  } catch (error) {\n    if (error instanceof ErrorResponse && error.code === 412) {\n      console.log(\"Document was modified by another process\");\n    }\n  }\n}\n```\n\n## TypeScript Types Reference\n\n```typescript\nimport {\n  \u002F\u002F Client & Resources\n  CosmosClient,\n  Database,\n  Container,\n  Item,\n  Items,\n  \n  \u002F\u002F Operations\n  OperationInput,\n  BulkOperationType,\n  PatchOperation,\n  \n  \u002F\u002F Queries\n  SqlQuerySpec,\n  SqlParameter,\n  FeedOptions,\n  \n  \u002F\u002F Partition Keys\n  PartitionKeyDefinition,\n  PartitionKeyDefinitionVersion,\n  PartitionKeyKind,\n  \n  \u002F\u002F Responses\n  ItemResponse,\n  FeedResponse,\n  ResourceResponse,\n  \n  \u002F\u002F Errors\n  ErrorResponse,\n} from \"@azure\u002Fcosmos\";\n```\n\n## Best Practices\n\n1. **Use Microsoft Entra Token Credential** — Use `DefaultAzureCredential` for local development; use `ManagedIdentityCredential` or `WorkloadIdentityCredential` for production\n2. **Always use parameterized queries** — Prevents injection, improves plan caching\n3. **Specify partition key** — Avoid cross-partition queries when possible\n4. **Use bulk operations** — For multiple writes, use `executeBulkOperations`\n5. **Handle 429 errors** — Implement retry logic with exponential backoff\n6. **Use ETags for concurrency** — Prevent lost updates in concurrent scenarios\n7. **Close client on shutdown** — Call `client.dispose()` in cleanup\n\n## Common Patterns\n\n### Service Layer Pattern\n\n```typescript\nexport class ProductService {\n  private container: Container;\n\n  constructor(client: CosmosClient) {\n    this.container = client\n      .database(process.env.COSMOS_DATABASE!)\n      .container(process.env.COSMOS_CONTAINER!);\n  }\n\n  async getById(id: string, category: string): Promise\u003CProduct | null> {\n    try {\n      const { resource } = await this.container\n        .item(id, category)\n        .read\u003CProduct>();\n      return resource ?? null;\n    } catch (error) {\n      if (error instanceof ErrorResponse && error.code === 404) {\n        return null;\n      }\n      throw error;\n    }\n  }\n\n  async create(product: Omit\u003CProduct, \"id\">): Promise\u003CProduct> {\n    const item = { ...product, id: crypto.randomUUID() };\n    const { resource } = await this.container.items.create\u003CProduct>(item);\n    return resource!;\n  }\n\n  async findByCategory(category: string): Promise\u003CProduct[]> {\n    const querySpec: SqlQuerySpec = {\n      query: \"SELECT * FROM c WHERE c.partitionKey = @category\",\n      parameters: [{ name: \"@category\", value: category }],\n    };\n    const { resources } = await this.container.items\n      .query\u003CProduct>(querySpec)\n      .fetchAll();\n    return resources;\n  }\n}\n```\n\n## Related SDKs\n\n| SDK | Purpose | Install |\n|-----|---------|---------|\n| `@azure\u002Fcosmos` | Data plane (this SDK) | `npm install @azure\u002Fcosmos` |\n| `@azure\u002Farm-cosmosdb` | Management plane (ARM) | `npm install @azure\u002Farm-cosmosdb` |\n| `@azure\u002Fidentity` | Authentication | `npm install @azure\u002Fidentity` |\n",{"data":45,"body":49},{"name":4,"description":6,"license":29,"metadata":46},{"author":9,"version":47,"package":48},"1.0.0","@azure\u002Fcosmos",{"type":50,"children":51},"root",[52,61,67,105,112,152,173,179,327,333,340,697,703,954,960,970,976,982,1254,1260,1603,1609,1810,1816,2133,2139,2357,2363,2443,2449,2876,2882,2888,3001,3007,3353,3359,3650,3656,3803,3809,3815,5186,5192,5198,5351,5357,6048,6054,6720,6726,7250,7256,7600,7606,7717,7723,7729,8879,8885,8993],{"type":53,"tag":54,"props":55,"children":57},"element","h1",{"id":56},"azurecosmos-typescriptjavascript",[58],{"type":59,"value":60},"text","@azure\u002Fcosmos (TypeScript\u002FJavaScript)",{"type":53,"tag":62,"props":63,"children":64},"p",{},[65],{"type":59,"value":66},"Data plane SDK for Azure Cosmos DB NoSQL API operations — CRUD on documents, queries, bulk operations.",{"type":53,"tag":68,"props":69,"children":70},"blockquote",{},[71,80],{"type":53,"tag":62,"props":72,"children":73},{},[74],{"type":53,"tag":75,"props":76,"children":77},"strong",{},[78],{"type":59,"value":79},"⚠️ Data vs Management Plane",{"type":53,"tag":81,"props":82,"children":83},"ul",{},[84,95],{"type":53,"tag":85,"props":86,"children":87},"li",{},[88,93],{"type":53,"tag":75,"props":89,"children":90},{},[91],{"type":59,"value":92},"This SDK (@azure\u002Fcosmos)",{"type":59,"value":94},": CRUD operations on documents, queries, stored procedures",{"type":53,"tag":85,"props":96,"children":97},{},[98,103],{"type":53,"tag":75,"props":99,"children":100},{},[101],{"type":59,"value":102},"Management SDK (@azure\u002Farm-cosmosdb)",{"type":59,"value":104},": Create accounts, databases, containers via ARM",{"type":53,"tag":106,"props":107,"children":109},"h2",{"id":108},"installation",[110],{"type":59,"value":111},"Installation",{"type":53,"tag":113,"props":114,"children":119},"pre",{"className":115,"code":116,"language":117,"meta":118,"style":118},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @azure\u002Fcosmos @azure\u002Fidentity\n","bash","",[120],{"type":53,"tag":121,"props":122,"children":123},"code",{"__ignoreMap":118},[124],{"type":53,"tag":125,"props":126,"children":129},"span",{"class":127,"line":128},"line",1,[130,136,142,147],{"type":53,"tag":125,"props":131,"children":133},{"style":132},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[134],{"type":59,"value":135},"npm",{"type":53,"tag":125,"props":137,"children":139},{"style":138},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[140],{"type":59,"value":141}," install",{"type":53,"tag":125,"props":143,"children":144},{"style":138},[145],{"type":59,"value":146}," @azure\u002Fcosmos",{"type":53,"tag":125,"props":148,"children":149},{"style":138},[150],{"type":59,"value":151}," @azure\u002Fidentity\n",{"type":53,"tag":62,"props":153,"children":154},{},[155,160,162,166,171],{"type":53,"tag":75,"props":156,"children":157},{},[158],{"type":59,"value":159},"Current Version",{"type":59,"value":161},": 4.9.0",{"type":53,"tag":163,"props":164,"children":165},"br",{},[],{"type":53,"tag":75,"props":167,"children":168},{},[169],{"type":59,"value":170},"Node.js",{"type":59,"value":172},": >= 20.0.0",{"type":53,"tag":106,"props":174,"children":176},{"id":175},"environment-variables",[177],{"type":59,"value":178},"Environment Variables",{"type":53,"tag":113,"props":180,"children":182},{"className":115,"code":181,"language":117,"meta":118,"style":118},"COSMOS_ENDPOINT=https:\u002F\u002F\u003Caccount>.documents.azure.com:443\u002F\nCOSMOS_DATABASE=\u003Cdatabase-name>\nCOSMOS_CONTAINER=\u003Ccontainer-name>\n# For key-based auth only (prefer AAD)\nCOSMOS_KEY=\u003Caccount-key>\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n",[183],{"type":53,"tag":121,"props":184,"children":185},{"__ignoreMap":118},[186,226,250,272,282,304],{"type":53,"tag":125,"props":187,"children":188},{"class":127,"line":128},[189,195,201,206,211,216,221],{"type":53,"tag":125,"props":190,"children":192},{"style":191},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[193],{"type":59,"value":194},"COSMOS_ENDPOINT",{"type":53,"tag":125,"props":196,"children":198},{"style":197},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[199],{"type":59,"value":200},"=",{"type":53,"tag":125,"props":202,"children":203},{"style":138},[204],{"type":59,"value":205},"https:\u002F\u002F",{"type":53,"tag":125,"props":207,"children":208},{"style":197},[209],{"type":59,"value":210},"\u003C",{"type":53,"tag":125,"props":212,"children":213},{"style":138},[214],{"type":59,"value":215},"account",{"type":53,"tag":125,"props":217,"children":218},{"style":197},[219],{"type":59,"value":220},">",{"type":53,"tag":125,"props":222,"children":223},{"style":138},[224],{"type":59,"value":225},".documents.azure.com:443\u002F\n",{"type":53,"tag":125,"props":227,"children":229},{"class":127,"line":228},2,[230,235,240,245],{"type":53,"tag":125,"props":231,"children":232},{"style":191},[233],{"type":59,"value":234},"COSMOS_DATABASE",{"type":53,"tag":125,"props":236,"children":237},{"style":197},[238],{"type":59,"value":239},"=\u003C",{"type":53,"tag":125,"props":241,"children":242},{"style":138},[243],{"type":59,"value":244},"database-name",{"type":53,"tag":125,"props":246,"children":247},{"style":197},[248],{"type":59,"value":249},">\n",{"type":53,"tag":125,"props":251,"children":253},{"class":127,"line":252},3,[254,259,263,268],{"type":53,"tag":125,"props":255,"children":256},{"style":191},[257],{"type":59,"value":258},"COSMOS_CONTAINER",{"type":53,"tag":125,"props":260,"children":261},{"style":197},[262],{"type":59,"value":239},{"type":53,"tag":125,"props":264,"children":265},{"style":138},[266],{"type":59,"value":267},"container-name",{"type":53,"tag":125,"props":269,"children":270},{"style":197},[271],{"type":59,"value":249},{"type":53,"tag":125,"props":273,"children":275},{"class":127,"line":274},4,[276],{"type":53,"tag":125,"props":277,"children":279},{"style":278},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[280],{"type":59,"value":281},"# For key-based auth only (prefer AAD)\n",{"type":53,"tag":125,"props":283,"children":285},{"class":127,"line":284},5,[286,291,295,300],{"type":53,"tag":125,"props":287,"children":288},{"style":191},[289],{"type":59,"value":290},"COSMOS_KEY",{"type":53,"tag":125,"props":292,"children":293},{"style":197},[294],{"type":59,"value":239},{"type":53,"tag":125,"props":296,"children":297},{"style":138},[298],{"type":59,"value":299},"account-key",{"type":53,"tag":125,"props":301,"children":302},{"style":197},[303],{"type":59,"value":249},{"type":53,"tag":125,"props":305,"children":307},{"class":127,"line":306},6,[308,313,317,322],{"type":53,"tag":125,"props":309,"children":310},{"style":191},[311],{"type":59,"value":312},"AZURE_TOKEN_CREDENTIALS",{"type":53,"tag":125,"props":314,"children":315},{"style":197},[316],{"type":59,"value":200},{"type":53,"tag":125,"props":318,"children":319},{"style":138},[320],{"type":59,"value":321},"prod",{"type":53,"tag":125,"props":323,"children":324},{"style":278},[325],{"type":59,"value":326}," # Required only if DefaultAzureCredential is used in production\n",{"type":53,"tag":106,"props":328,"children":330},{"id":329},"authentication",[331],{"type":59,"value":332},"Authentication",{"type":53,"tag":334,"props":335,"children":337},"h3",{"id":336},"microsoft-entra-token-credential-recommended",[338],{"type":59,"value":339},"Microsoft Entra Token Credential (Recommended)",{"type":53,"tag":113,"props":341,"children":344},{"className":342,"code":343,"language":18,"meta":118,"style":118},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { CosmosClient } from \"@azure\u002Fcosmos\";\nimport { DefaultAzureCredential, ManagedIdentityCredential } from \"@azure\u002Fidentity\";\n\n\u002F\u002F Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\nconst credential = new DefaultAzureCredential({requiredEnvVars: [\"AZURE_TOKEN_CREDENTIALS\"]});\n\u002F\u002F Or use a specific credential directly in production:\n\u002F\u002F See https:\u002F\u002Flearn.microsoft.com\u002Fjavascript\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-node-latest#credential-classes\n\u002F\u002F const credential = new ManagedIdentityCredential();\n\nconst client = new CosmosClient({\n  endpoint: process.env.COSMOS_ENDPOINT!,\n  aadCredentials: credential,\n});\n",[345],{"type":53,"tag":121,"props":346,"children":347},{"__ignoreMap":118},[348,396,447,456,464,549,557,566,575,583,617,658,681],{"type":53,"tag":125,"props":349,"children":350},{"class":127,"line":128},[351,357,362,367,372,377,382,386,391],{"type":53,"tag":125,"props":352,"children":354},{"style":353},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[355],{"type":59,"value":356},"import",{"type":53,"tag":125,"props":358,"children":359},{"style":197},[360],{"type":59,"value":361}," {",{"type":53,"tag":125,"props":363,"children":364},{"style":191},[365],{"type":59,"value":366}," CosmosClient",{"type":53,"tag":125,"props":368,"children":369},{"style":197},[370],{"type":59,"value":371}," }",{"type":53,"tag":125,"props":373,"children":374},{"style":353},[375],{"type":59,"value":376}," from",{"type":53,"tag":125,"props":378,"children":379},{"style":197},[380],{"type":59,"value":381}," \"",{"type":53,"tag":125,"props":383,"children":384},{"style":138},[385],{"type":59,"value":48},{"type":53,"tag":125,"props":387,"children":388},{"style":197},[389],{"type":59,"value":390},"\"",{"type":53,"tag":125,"props":392,"children":393},{"style":197},[394],{"type":59,"value":395},";\n",{"type":53,"tag":125,"props":397,"children":398},{"class":127,"line":228},[399,403,407,412,417,422,426,430,434,439,443],{"type":53,"tag":125,"props":400,"children":401},{"style":353},[402],{"type":59,"value":356},{"type":53,"tag":125,"props":404,"children":405},{"style":197},[406],{"type":59,"value":361},{"type":53,"tag":125,"props":408,"children":409},{"style":191},[410],{"type":59,"value":411}," DefaultAzureCredential",{"type":53,"tag":125,"props":413,"children":414},{"style":197},[415],{"type":59,"value":416},",",{"type":53,"tag":125,"props":418,"children":419},{"style":191},[420],{"type":59,"value":421}," ManagedIdentityCredential",{"type":53,"tag":125,"props":423,"children":424},{"style":197},[425],{"type":59,"value":371},{"type":53,"tag":125,"props":427,"children":428},{"style":353},[429],{"type":59,"value":376},{"type":53,"tag":125,"props":431,"children":432},{"style":197},[433],{"type":59,"value":381},{"type":53,"tag":125,"props":435,"children":436},{"style":138},[437],{"type":59,"value":438},"@azure\u002Fidentity",{"type":53,"tag":125,"props":440,"children":441},{"style":197},[442],{"type":59,"value":390},{"type":53,"tag":125,"props":444,"children":445},{"style":197},[446],{"type":59,"value":395},{"type":53,"tag":125,"props":448,"children":449},{"class":127,"line":252},[450],{"type":53,"tag":125,"props":451,"children":453},{"emptyLinePlaceholder":452},true,[454],{"type":59,"value":455},"\n",{"type":53,"tag":125,"props":457,"children":458},{"class":127,"line":274},[459],{"type":53,"tag":125,"props":460,"children":461},{"style":278},[462],{"type":59,"value":463},"\u002F\u002F Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\n",{"type":53,"tag":125,"props":465,"children":466},{"class":127,"line":284},[467,473,478,482,487,492,497,502,508,513,518,522,526,530,535,540,545],{"type":53,"tag":125,"props":468,"children":470},{"style":469},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[471],{"type":59,"value":472},"const",{"type":53,"tag":125,"props":474,"children":475},{"style":191},[476],{"type":59,"value":477}," credential ",{"type":53,"tag":125,"props":479,"children":480},{"style":197},[481],{"type":59,"value":200},{"type":53,"tag":125,"props":483,"children":484},{"style":197},[485],{"type":59,"value":486}," new",{"type":53,"tag":125,"props":488,"children":490},{"style":489},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[491],{"type":59,"value":411},{"type":53,"tag":125,"props":493,"children":494},{"style":191},[495],{"type":59,"value":496},"(",{"type":53,"tag":125,"props":498,"children":499},{"style":197},[500],{"type":59,"value":501},"{",{"type":53,"tag":125,"props":503,"children":505},{"style":504},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[506],{"type":59,"value":507},"requiredEnvVars",{"type":53,"tag":125,"props":509,"children":510},{"style":197},[511],{"type":59,"value":512},":",{"type":53,"tag":125,"props":514,"children":515},{"style":191},[516],{"type":59,"value":517}," [",{"type":53,"tag":125,"props":519,"children":520},{"style":197},[521],{"type":59,"value":390},{"type":53,"tag":125,"props":523,"children":524},{"style":138},[525],{"type":59,"value":312},{"type":53,"tag":125,"props":527,"children":528},{"style":197},[529],{"type":59,"value":390},{"type":53,"tag":125,"props":531,"children":532},{"style":191},[533],{"type":59,"value":534},"]",{"type":53,"tag":125,"props":536,"children":537},{"style":197},[538],{"type":59,"value":539},"}",{"type":53,"tag":125,"props":541,"children":542},{"style":191},[543],{"type":59,"value":544},")",{"type":53,"tag":125,"props":546,"children":547},{"style":197},[548],{"type":59,"value":395},{"type":53,"tag":125,"props":550,"children":551},{"class":127,"line":306},[552],{"type":53,"tag":125,"props":553,"children":554},{"style":278},[555],{"type":59,"value":556},"\u002F\u002F Or use a specific credential directly in production:\n",{"type":53,"tag":125,"props":558,"children":560},{"class":127,"line":559},7,[561],{"type":53,"tag":125,"props":562,"children":563},{"style":278},[564],{"type":59,"value":565},"\u002F\u002F See https:\u002F\u002Flearn.microsoft.com\u002Fjavascript\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-node-latest#credential-classes\n",{"type":53,"tag":125,"props":567,"children":569},{"class":127,"line":568},8,[570],{"type":53,"tag":125,"props":571,"children":572},{"style":278},[573],{"type":59,"value":574},"\u002F\u002F const credential = new ManagedIdentityCredential();\n",{"type":53,"tag":125,"props":576,"children":578},{"class":127,"line":577},9,[579],{"type":53,"tag":125,"props":580,"children":581},{"emptyLinePlaceholder":452},[582],{"type":59,"value":455},{"type":53,"tag":125,"props":584,"children":586},{"class":127,"line":585},10,[587,591,596,600,604,608,612],{"type":53,"tag":125,"props":588,"children":589},{"style":469},[590],{"type":59,"value":472},{"type":53,"tag":125,"props":592,"children":593},{"style":191},[594],{"type":59,"value":595}," client ",{"type":53,"tag":125,"props":597,"children":598},{"style":197},[599],{"type":59,"value":200},{"type":53,"tag":125,"props":601,"children":602},{"style":197},[603],{"type":59,"value":486},{"type":53,"tag":125,"props":605,"children":606},{"style":489},[607],{"type":59,"value":366},{"type":53,"tag":125,"props":609,"children":610},{"style":191},[611],{"type":59,"value":496},{"type":53,"tag":125,"props":613,"children":614},{"style":197},[615],{"type":59,"value":616},"{\n",{"type":53,"tag":125,"props":618,"children":620},{"class":127,"line":619},11,[621,626,630,635,640,645,649,653],{"type":53,"tag":125,"props":622,"children":623},{"style":504},[624],{"type":59,"value":625},"  endpoint",{"type":53,"tag":125,"props":627,"children":628},{"style":197},[629],{"type":59,"value":512},{"type":53,"tag":125,"props":631,"children":632},{"style":191},[633],{"type":59,"value":634}," process",{"type":53,"tag":125,"props":636,"children":637},{"style":197},[638],{"type":59,"value":639},".",{"type":53,"tag":125,"props":641,"children":642},{"style":191},[643],{"type":59,"value":644},"env",{"type":53,"tag":125,"props":646,"children":647},{"style":197},[648],{"type":59,"value":639},{"type":53,"tag":125,"props":650,"children":651},{"style":191},[652],{"type":59,"value":194},{"type":53,"tag":125,"props":654,"children":655},{"style":197},[656],{"type":59,"value":657},"!,\n",{"type":53,"tag":125,"props":659,"children":661},{"class":127,"line":660},12,[662,667,671,676],{"type":53,"tag":125,"props":663,"children":664},{"style":504},[665],{"type":59,"value":666},"  aadCredentials",{"type":53,"tag":125,"props":668,"children":669},{"style":197},[670],{"type":59,"value":512},{"type":53,"tag":125,"props":672,"children":673},{"style":191},[674],{"type":59,"value":675}," credential",{"type":53,"tag":125,"props":677,"children":678},{"style":197},[679],{"type":59,"value":680},",\n",{"type":53,"tag":125,"props":682,"children":684},{"class":127,"line":683},13,[685,689,693],{"type":53,"tag":125,"props":686,"children":687},{"style":197},[688],{"type":59,"value":539},{"type":53,"tag":125,"props":690,"children":691},{"style":191},[692],{"type":59,"value":544},{"type":53,"tag":125,"props":694,"children":695},{"style":197},[696],{"type":59,"value":395},{"type":53,"tag":334,"props":698,"children":700},{"id":699},"key-based-authentication",[701],{"type":59,"value":702},"Key-Based Authentication",{"type":53,"tag":113,"props":704,"children":706},{"className":342,"code":705,"language":18,"meta":118,"style":118},"import { CosmosClient } from \"@azure\u002Fcosmos\";\n\n\u002F\u002F Option 1: Endpoint + Key\nconst client = new CosmosClient({\n  endpoint: process.env.COSMOS_ENDPOINT!,\n  key: process.env.COSMOS_KEY!,\n});\n\n\u002F\u002F Option 2: Connection String\nconst client = new CosmosClient(process.env.COSMOS_CONNECTION_STRING!);\n",[707],{"type":53,"tag":121,"props":708,"children":709},{"__ignoreMap":118},[710,749,756,764,795,830,866,881,888,896],{"type":53,"tag":125,"props":711,"children":712},{"class":127,"line":128},[713,717,721,725,729,733,737,741,745],{"type":53,"tag":125,"props":714,"children":715},{"style":353},[716],{"type":59,"value":356},{"type":53,"tag":125,"props":718,"children":719},{"style":197},[720],{"type":59,"value":361},{"type":53,"tag":125,"props":722,"children":723},{"style":191},[724],{"type":59,"value":366},{"type":53,"tag":125,"props":726,"children":727},{"style":197},[728],{"type":59,"value":371},{"type":53,"tag":125,"props":730,"children":731},{"style":353},[732],{"type":59,"value":376},{"type":53,"tag":125,"props":734,"children":735},{"style":197},[736],{"type":59,"value":381},{"type":53,"tag":125,"props":738,"children":739},{"style":138},[740],{"type":59,"value":48},{"type":53,"tag":125,"props":742,"children":743},{"style":197},[744],{"type":59,"value":390},{"type":53,"tag":125,"props":746,"children":747},{"style":197},[748],{"type":59,"value":395},{"type":53,"tag":125,"props":750,"children":751},{"class":127,"line":228},[752],{"type":53,"tag":125,"props":753,"children":754},{"emptyLinePlaceholder":452},[755],{"type":59,"value":455},{"type":53,"tag":125,"props":757,"children":758},{"class":127,"line":252},[759],{"type":53,"tag":125,"props":760,"children":761},{"style":278},[762],{"type":59,"value":763},"\u002F\u002F Option 1: Endpoint + Key\n",{"type":53,"tag":125,"props":765,"children":766},{"class":127,"line":274},[767,771,775,779,783,787,791],{"type":53,"tag":125,"props":768,"children":769},{"style":469},[770],{"type":59,"value":472},{"type":53,"tag":125,"props":772,"children":773},{"style":191},[774],{"type":59,"value":595},{"type":53,"tag":125,"props":776,"children":777},{"style":197},[778],{"type":59,"value":200},{"type":53,"tag":125,"props":780,"children":781},{"style":197},[782],{"type":59,"value":486},{"type":53,"tag":125,"props":784,"children":785},{"style":489},[786],{"type":59,"value":366},{"type":53,"tag":125,"props":788,"children":789},{"style":191},[790],{"type":59,"value":496},{"type":53,"tag":125,"props":792,"children":793},{"style":197},[794],{"type":59,"value":616},{"type":53,"tag":125,"props":796,"children":797},{"class":127,"line":284},[798,802,806,810,814,818,822,826],{"type":53,"tag":125,"props":799,"children":800},{"style":504},[801],{"type":59,"value":625},{"type":53,"tag":125,"props":803,"children":804},{"style":197},[805],{"type":59,"value":512},{"type":53,"tag":125,"props":807,"children":808},{"style":191},[809],{"type":59,"value":634},{"type":53,"tag":125,"props":811,"children":812},{"style":197},[813],{"type":59,"value":639},{"type":53,"tag":125,"props":815,"children":816},{"style":191},[817],{"type":59,"value":644},{"type":53,"tag":125,"props":819,"children":820},{"style":197},[821],{"type":59,"value":639},{"type":53,"tag":125,"props":823,"children":824},{"style":191},[825],{"type":59,"value":194},{"type":53,"tag":125,"props":827,"children":828},{"style":197},[829],{"type":59,"value":657},{"type":53,"tag":125,"props":831,"children":832},{"class":127,"line":306},[833,838,842,846,850,854,858,862],{"type":53,"tag":125,"props":834,"children":835},{"style":504},[836],{"type":59,"value":837},"  key",{"type":53,"tag":125,"props":839,"children":840},{"style":197},[841],{"type":59,"value":512},{"type":53,"tag":125,"props":843,"children":844},{"style":191},[845],{"type":59,"value":634},{"type":53,"tag":125,"props":847,"children":848},{"style":197},[849],{"type":59,"value":639},{"type":53,"tag":125,"props":851,"children":852},{"style":191},[853],{"type":59,"value":644},{"type":53,"tag":125,"props":855,"children":856},{"style":197},[857],{"type":59,"value":639},{"type":53,"tag":125,"props":859,"children":860},{"style":191},[861],{"type":59,"value":290},{"type":53,"tag":125,"props":863,"children":864},{"style":197},[865],{"type":59,"value":657},{"type":53,"tag":125,"props":867,"children":868},{"class":127,"line":559},[869,873,877],{"type":53,"tag":125,"props":870,"children":871},{"style":197},[872],{"type":59,"value":539},{"type":53,"tag":125,"props":874,"children":875},{"style":191},[876],{"type":59,"value":544},{"type":53,"tag":125,"props":878,"children":879},{"style":197},[880],{"type":59,"value":395},{"type":53,"tag":125,"props":882,"children":883},{"class":127,"line":568},[884],{"type":53,"tag":125,"props":885,"children":886},{"emptyLinePlaceholder":452},[887],{"type":59,"value":455},{"type":53,"tag":125,"props":889,"children":890},{"class":127,"line":577},[891],{"type":53,"tag":125,"props":892,"children":893},{"style":278},[894],{"type":59,"value":895},"\u002F\u002F Option 2: Connection String\n",{"type":53,"tag":125,"props":897,"children":898},{"class":127,"line":585},[899,903,907,911,915,919,924,928,932,936,941,946,950],{"type":53,"tag":125,"props":900,"children":901},{"style":469},[902],{"type":59,"value":472},{"type":53,"tag":125,"props":904,"children":905},{"style":191},[906],{"type":59,"value":595},{"type":53,"tag":125,"props":908,"children":909},{"style":197},[910],{"type":59,"value":200},{"type":53,"tag":125,"props":912,"children":913},{"style":197},[914],{"type":59,"value":486},{"type":53,"tag":125,"props":916,"children":917},{"style":489},[918],{"type":59,"value":366},{"type":53,"tag":125,"props":920,"children":921},{"style":191},[922],{"type":59,"value":923},"(process",{"type":53,"tag":125,"props":925,"children":926},{"style":197},[927],{"type":59,"value":639},{"type":53,"tag":125,"props":929,"children":930},{"style":191},[931],{"type":59,"value":644},{"type":53,"tag":125,"props":933,"children":934},{"style":197},[935],{"type":59,"value":639},{"type":53,"tag":125,"props":937,"children":938},{"style":191},[939],{"type":59,"value":940},"COSMOS_CONNECTION_STRING",{"type":53,"tag":125,"props":942,"children":943},{"style":197},[944],{"type":59,"value":945},"!",{"type":53,"tag":125,"props":947,"children":948},{"style":191},[949],{"type":59,"value":544},{"type":53,"tag":125,"props":951,"children":952},{"style":197},[953],{"type":59,"value":395},{"type":53,"tag":106,"props":955,"children":957},{"id":956},"resource-hierarchy",[958],{"type":59,"value":959},"Resource Hierarchy",{"type":53,"tag":113,"props":961,"children":965},{"className":962,"code":964,"language":59},[963],"language-text","CosmosClient\n└── Database\n    └── Container\n        ├── Items (documents)\n        ├── Scripts (stored procedures, triggers, UDFs)\n        └── Conflicts\n",[966],{"type":53,"tag":121,"props":967,"children":968},{"__ignoreMap":118},[969],{"type":59,"value":964},{"type":53,"tag":106,"props":971,"children":973},{"id":972},"core-operations",[974],{"type":59,"value":975},"Core Operations",{"type":53,"tag":334,"props":977,"children":979},{"id":978},"database-container-setup",[980],{"type":59,"value":981},"Database & Container Setup",{"type":53,"tag":113,"props":983,"children":985},{"className":342,"code":984,"language":18,"meta":118,"style":118},"const { database } = await client.databases.createIfNotExists({\n  id: \"my-database\",\n});\n\nconst { container } = await database.containers.createIfNotExists({\n  id: \"my-container\",\n  partitionKey: { paths: [\"\u002FpartitionKey\"] },\n});\n",[986],{"type":53,"tag":121,"props":987,"children":988},{"__ignoreMap":118},[989,1050,1079,1094,1101,1159,1187,1239],{"type":53,"tag":125,"props":990,"children":991},{"class":127,"line":128},[992,996,1000,1005,1009,1014,1019,1024,1028,1033,1037,1042,1046],{"type":53,"tag":125,"props":993,"children":994},{"style":469},[995],{"type":59,"value":472},{"type":53,"tag":125,"props":997,"children":998},{"style":197},[999],{"type":59,"value":361},{"type":53,"tag":125,"props":1001,"children":1002},{"style":191},[1003],{"type":59,"value":1004}," database ",{"type":53,"tag":125,"props":1006,"children":1007},{"style":197},[1008],{"type":59,"value":539},{"type":53,"tag":125,"props":1010,"children":1011},{"style":197},[1012],{"type":59,"value":1013}," =",{"type":53,"tag":125,"props":1015,"children":1016},{"style":353},[1017],{"type":59,"value":1018}," await",{"type":53,"tag":125,"props":1020,"children":1021},{"style":191},[1022],{"type":59,"value":1023}," client",{"type":53,"tag":125,"props":1025,"children":1026},{"style":197},[1027],{"type":59,"value":639},{"type":53,"tag":125,"props":1029,"children":1030},{"style":191},[1031],{"type":59,"value":1032},"databases",{"type":53,"tag":125,"props":1034,"children":1035},{"style":197},[1036],{"type":59,"value":639},{"type":53,"tag":125,"props":1038,"children":1039},{"style":489},[1040],{"type":59,"value":1041},"createIfNotExists",{"type":53,"tag":125,"props":1043,"children":1044},{"style":191},[1045],{"type":59,"value":496},{"type":53,"tag":125,"props":1047,"children":1048},{"style":197},[1049],{"type":59,"value":616},{"type":53,"tag":125,"props":1051,"children":1052},{"class":127,"line":228},[1053,1058,1062,1066,1071,1075],{"type":53,"tag":125,"props":1054,"children":1055},{"style":504},[1056],{"type":59,"value":1057},"  id",{"type":53,"tag":125,"props":1059,"children":1060},{"style":197},[1061],{"type":59,"value":512},{"type":53,"tag":125,"props":1063,"children":1064},{"style":197},[1065],{"type":59,"value":381},{"type":53,"tag":125,"props":1067,"children":1068},{"style":138},[1069],{"type":59,"value":1070},"my-database",{"type":53,"tag":125,"props":1072,"children":1073},{"style":197},[1074],{"type":59,"value":390},{"type":53,"tag":125,"props":1076,"children":1077},{"style":197},[1078],{"type":59,"value":680},{"type":53,"tag":125,"props":1080,"children":1081},{"class":127,"line":252},[1082,1086,1090],{"type":53,"tag":125,"props":1083,"children":1084},{"style":197},[1085],{"type":59,"value":539},{"type":53,"tag":125,"props":1087,"children":1088},{"style":191},[1089],{"type":59,"value":544},{"type":53,"tag":125,"props":1091,"children":1092},{"style":197},[1093],{"type":59,"value":395},{"type":53,"tag":125,"props":1095,"children":1096},{"class":127,"line":274},[1097],{"type":53,"tag":125,"props":1098,"children":1099},{"emptyLinePlaceholder":452},[1100],{"type":59,"value":455},{"type":53,"tag":125,"props":1102,"children":1103},{"class":127,"line":284},[1104,1108,1112,1117,1121,1125,1129,1134,1138,1143,1147,1151,1155],{"type":53,"tag":125,"props":1105,"children":1106},{"style":469},[1107],{"type":59,"value":472},{"type":53,"tag":125,"props":1109,"children":1110},{"style":197},[1111],{"type":59,"value":361},{"type":53,"tag":125,"props":1113,"children":1114},{"style":191},[1115],{"type":59,"value":1116}," container ",{"type":53,"tag":125,"props":1118,"children":1119},{"style":197},[1120],{"type":59,"value":539},{"type":53,"tag":125,"props":1122,"children":1123},{"style":197},[1124],{"type":59,"value":1013},{"type":53,"tag":125,"props":1126,"children":1127},{"style":353},[1128],{"type":59,"value":1018},{"type":53,"tag":125,"props":1130,"children":1131},{"style":191},[1132],{"type":59,"value":1133}," database",{"type":53,"tag":125,"props":1135,"children":1136},{"style":197},[1137],{"type":59,"value":639},{"type":53,"tag":125,"props":1139,"children":1140},{"style":191},[1141],{"type":59,"value":1142},"containers",{"type":53,"tag":125,"props":1144,"children":1145},{"style":197},[1146],{"type":59,"value":639},{"type":53,"tag":125,"props":1148,"children":1149},{"style":489},[1150],{"type":59,"value":1041},{"type":53,"tag":125,"props":1152,"children":1153},{"style":191},[1154],{"type":59,"value":496},{"type":53,"tag":125,"props":1156,"children":1157},{"style":197},[1158],{"type":59,"value":616},{"type":53,"tag":125,"props":1160,"children":1161},{"class":127,"line":306},[1162,1166,1170,1174,1179,1183],{"type":53,"tag":125,"props":1163,"children":1164},{"style":504},[1165],{"type":59,"value":1057},{"type":53,"tag":125,"props":1167,"children":1168},{"style":197},[1169],{"type":59,"value":512},{"type":53,"tag":125,"props":1171,"children":1172},{"style":197},[1173],{"type":59,"value":381},{"type":53,"tag":125,"props":1175,"children":1176},{"style":138},[1177],{"type":59,"value":1178},"my-container",{"type":53,"tag":125,"props":1180,"children":1181},{"style":197},[1182],{"type":59,"value":390},{"type":53,"tag":125,"props":1184,"children":1185},{"style":197},[1186],{"type":59,"value":680},{"type":53,"tag":125,"props":1188,"children":1189},{"class":127,"line":559},[1190,1195,1199,1203,1208,1212,1216,1220,1225,1229,1234],{"type":53,"tag":125,"props":1191,"children":1192},{"style":504},[1193],{"type":59,"value":1194},"  partitionKey",{"type":53,"tag":125,"props":1196,"children":1197},{"style":197},[1198],{"type":59,"value":512},{"type":53,"tag":125,"props":1200,"children":1201},{"style":197},[1202],{"type":59,"value":361},{"type":53,"tag":125,"props":1204,"children":1205},{"style":504},[1206],{"type":59,"value":1207}," paths",{"type":53,"tag":125,"props":1209,"children":1210},{"style":197},[1211],{"type":59,"value":512},{"type":53,"tag":125,"props":1213,"children":1214},{"style":191},[1215],{"type":59,"value":517},{"type":53,"tag":125,"props":1217,"children":1218},{"style":197},[1219],{"type":59,"value":390},{"type":53,"tag":125,"props":1221,"children":1222},{"style":138},[1223],{"type":59,"value":1224},"\u002FpartitionKey",{"type":53,"tag":125,"props":1226,"children":1227},{"style":197},[1228],{"type":59,"value":390},{"type":53,"tag":125,"props":1230,"children":1231},{"style":191},[1232],{"type":59,"value":1233},"] ",{"type":53,"tag":125,"props":1235,"children":1236},{"style":197},[1237],{"type":59,"value":1238},"},\n",{"type":53,"tag":125,"props":1240,"children":1241},{"class":127,"line":568},[1242,1246,1250],{"type":53,"tag":125,"props":1243,"children":1244},{"style":197},[1245],{"type":59,"value":539},{"type":53,"tag":125,"props":1247,"children":1248},{"style":191},[1249],{"type":59,"value":544},{"type":53,"tag":125,"props":1251,"children":1252},{"style":197},[1253],{"type":59,"value":395},{"type":53,"tag":334,"props":1255,"children":1257},{"id":1256},"create-document",[1258],{"type":59,"value":1259},"Create Document",{"type":53,"tag":113,"props":1261,"children":1263},{"className":342,"code":1262,"language":18,"meta":118,"style":118},"interface Product {\n  id: string;\n  partitionKey: string;\n  name: string;\n  price: number;\n}\n\nconst item: Product = {\n  id: \"product-1\",\n  partitionKey: \"electronics\",\n  name: \"Laptop\",\n  price: 999.99,\n};\n\nconst { resource } = await container.items.create\u003CProduct>(item);\n",[1264],{"type":53,"tag":121,"props":1265,"children":1266},{"__ignoreMap":118},[1267,1285,1305,1324,1344,1365,1373,1380,1408,1436,1464,1492,1513,1521,1529],{"type":53,"tag":125,"props":1268,"children":1269},{"class":127,"line":128},[1270,1275,1280],{"type":53,"tag":125,"props":1271,"children":1272},{"style":469},[1273],{"type":59,"value":1274},"interface",{"type":53,"tag":125,"props":1276,"children":1277},{"style":132},[1278],{"type":59,"value":1279}," Product",{"type":53,"tag":125,"props":1281,"children":1282},{"style":197},[1283],{"type":59,"value":1284}," {\n",{"type":53,"tag":125,"props":1286,"children":1287},{"class":127,"line":228},[1288,1292,1296,1301],{"type":53,"tag":125,"props":1289,"children":1290},{"style":504},[1291],{"type":59,"value":1057},{"type":53,"tag":125,"props":1293,"children":1294},{"style":197},[1295],{"type":59,"value":512},{"type":53,"tag":125,"props":1297,"children":1298},{"style":132},[1299],{"type":59,"value":1300}," string",{"type":53,"tag":125,"props":1302,"children":1303},{"style":197},[1304],{"type":59,"value":395},{"type":53,"tag":125,"props":1306,"children":1307},{"class":127,"line":252},[1308,1312,1316,1320],{"type":53,"tag":125,"props":1309,"children":1310},{"style":504},[1311],{"type":59,"value":1194},{"type":53,"tag":125,"props":1313,"children":1314},{"style":197},[1315],{"type":59,"value":512},{"type":53,"tag":125,"props":1317,"children":1318},{"style":132},[1319],{"type":59,"value":1300},{"type":53,"tag":125,"props":1321,"children":1322},{"style":197},[1323],{"type":59,"value":395},{"type":53,"tag":125,"props":1325,"children":1326},{"class":127,"line":274},[1327,1332,1336,1340],{"type":53,"tag":125,"props":1328,"children":1329},{"style":504},[1330],{"type":59,"value":1331},"  name",{"type":53,"tag":125,"props":1333,"children":1334},{"style":197},[1335],{"type":59,"value":512},{"type":53,"tag":125,"props":1337,"children":1338},{"style":132},[1339],{"type":59,"value":1300},{"type":53,"tag":125,"props":1341,"children":1342},{"style":197},[1343],{"type":59,"value":395},{"type":53,"tag":125,"props":1345,"children":1346},{"class":127,"line":284},[1347,1352,1356,1361],{"type":53,"tag":125,"props":1348,"children":1349},{"style":504},[1350],{"type":59,"value":1351},"  price",{"type":53,"tag":125,"props":1353,"children":1354},{"style":197},[1355],{"type":59,"value":512},{"type":53,"tag":125,"props":1357,"children":1358},{"style":132},[1359],{"type":59,"value":1360}," number",{"type":53,"tag":125,"props":1362,"children":1363},{"style":197},[1364],{"type":59,"value":395},{"type":53,"tag":125,"props":1366,"children":1367},{"class":127,"line":306},[1368],{"type":53,"tag":125,"props":1369,"children":1370},{"style":197},[1371],{"type":59,"value":1372},"}\n",{"type":53,"tag":125,"props":1374,"children":1375},{"class":127,"line":559},[1376],{"type":53,"tag":125,"props":1377,"children":1378},{"emptyLinePlaceholder":452},[1379],{"type":59,"value":455},{"type":53,"tag":125,"props":1381,"children":1382},{"class":127,"line":568},[1383,1387,1392,1396,1400,1404],{"type":53,"tag":125,"props":1384,"children":1385},{"style":469},[1386],{"type":59,"value":472},{"type":53,"tag":125,"props":1388,"children":1389},{"style":191},[1390],{"type":59,"value":1391}," item",{"type":53,"tag":125,"props":1393,"children":1394},{"style":197},[1395],{"type":59,"value":512},{"type":53,"tag":125,"props":1397,"children":1398},{"style":132},[1399],{"type":59,"value":1279},{"type":53,"tag":125,"props":1401,"children":1402},{"style":197},[1403],{"type":59,"value":1013},{"type":53,"tag":125,"props":1405,"children":1406},{"style":197},[1407],{"type":59,"value":1284},{"type":53,"tag":125,"props":1409,"children":1410},{"class":127,"line":577},[1411,1415,1419,1423,1428,1432],{"type":53,"tag":125,"props":1412,"children":1413},{"style":504},[1414],{"type":59,"value":1057},{"type":53,"tag":125,"props":1416,"children":1417},{"style":197},[1418],{"type":59,"value":512},{"type":53,"tag":125,"props":1420,"children":1421},{"style":197},[1422],{"type":59,"value":381},{"type":53,"tag":125,"props":1424,"children":1425},{"style":138},[1426],{"type":59,"value":1427},"product-1",{"type":53,"tag":125,"props":1429,"children":1430},{"style":197},[1431],{"type":59,"value":390},{"type":53,"tag":125,"props":1433,"children":1434},{"style":197},[1435],{"type":59,"value":680},{"type":53,"tag":125,"props":1437,"children":1438},{"class":127,"line":585},[1439,1443,1447,1451,1456,1460],{"type":53,"tag":125,"props":1440,"children":1441},{"style":504},[1442],{"type":59,"value":1194},{"type":53,"tag":125,"props":1444,"children":1445},{"style":197},[1446],{"type":59,"value":512},{"type":53,"tag":125,"props":1448,"children":1449},{"style":197},[1450],{"type":59,"value":381},{"type":53,"tag":125,"props":1452,"children":1453},{"style":138},[1454],{"type":59,"value":1455},"electronics",{"type":53,"tag":125,"props":1457,"children":1458},{"style":197},[1459],{"type":59,"value":390},{"type":53,"tag":125,"props":1461,"children":1462},{"style":197},[1463],{"type":59,"value":680},{"type":53,"tag":125,"props":1465,"children":1466},{"class":127,"line":619},[1467,1471,1475,1479,1484,1488],{"type":53,"tag":125,"props":1468,"children":1469},{"style":504},[1470],{"type":59,"value":1331},{"type":53,"tag":125,"props":1472,"children":1473},{"style":197},[1474],{"type":59,"value":512},{"type":53,"tag":125,"props":1476,"children":1477},{"style":197},[1478],{"type":59,"value":381},{"type":53,"tag":125,"props":1480,"children":1481},{"style":138},[1482],{"type":59,"value":1483},"Laptop",{"type":53,"tag":125,"props":1485,"children":1486},{"style":197},[1487],{"type":59,"value":390},{"type":53,"tag":125,"props":1489,"children":1490},{"style":197},[1491],{"type":59,"value":680},{"type":53,"tag":125,"props":1493,"children":1494},{"class":127,"line":660},[1495,1499,1503,1509],{"type":53,"tag":125,"props":1496,"children":1497},{"style":504},[1498],{"type":59,"value":1351},{"type":53,"tag":125,"props":1500,"children":1501},{"style":197},[1502],{"type":59,"value":512},{"type":53,"tag":125,"props":1504,"children":1506},{"style":1505},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1507],{"type":59,"value":1508}," 999.99",{"type":53,"tag":125,"props":1510,"children":1511},{"style":197},[1512],{"type":59,"value":680},{"type":53,"tag":125,"props":1514,"children":1515},{"class":127,"line":683},[1516],{"type":53,"tag":125,"props":1517,"children":1518},{"style":197},[1519],{"type":59,"value":1520},"};\n",{"type":53,"tag":125,"props":1522,"children":1524},{"class":127,"line":1523},14,[1525],{"type":53,"tag":125,"props":1526,"children":1527},{"emptyLinePlaceholder":452},[1528],{"type":59,"value":455},{"type":53,"tag":125,"props":1530,"children":1532},{"class":127,"line":1531},15,[1533,1537,1541,1546,1550,1554,1558,1563,1567,1572,1576,1581,1585,1590,1594,1599],{"type":53,"tag":125,"props":1534,"children":1535},{"style":469},[1536],{"type":59,"value":472},{"type":53,"tag":125,"props":1538,"children":1539},{"style":197},[1540],{"type":59,"value":361},{"type":53,"tag":125,"props":1542,"children":1543},{"style":191},[1544],{"type":59,"value":1545}," resource ",{"type":53,"tag":125,"props":1547,"children":1548},{"style":197},[1549],{"type":59,"value":539},{"type":53,"tag":125,"props":1551,"children":1552},{"style":197},[1553],{"type":59,"value":1013},{"type":53,"tag":125,"props":1555,"children":1556},{"style":353},[1557],{"type":59,"value":1018},{"type":53,"tag":125,"props":1559,"children":1560},{"style":191},[1561],{"type":59,"value":1562}," container",{"type":53,"tag":125,"props":1564,"children":1565},{"style":197},[1566],{"type":59,"value":639},{"type":53,"tag":125,"props":1568,"children":1569},{"style":191},[1570],{"type":59,"value":1571},"items",{"type":53,"tag":125,"props":1573,"children":1574},{"style":197},[1575],{"type":59,"value":639},{"type":53,"tag":125,"props":1577,"children":1578},{"style":489},[1579],{"type":59,"value":1580},"create",{"type":53,"tag":125,"props":1582,"children":1583},{"style":197},[1584],{"type":59,"value":210},{"type":53,"tag":125,"props":1586,"children":1587},{"style":132},[1588],{"type":59,"value":1589},"Product",{"type":53,"tag":125,"props":1591,"children":1592},{"style":197},[1593],{"type":59,"value":220},{"type":53,"tag":125,"props":1595,"children":1596},{"style":191},[1597],{"type":59,"value":1598},"(item)",{"type":53,"tag":125,"props":1600,"children":1601},{"style":197},[1602],{"type":59,"value":395},{"type":53,"tag":334,"props":1604,"children":1606},{"id":1605},"read-document",[1607],{"type":59,"value":1608},"Read Document",{"type":53,"tag":113,"props":1610,"children":1612},{"className":342,"code":1611,"language":18,"meta":118,"style":118},"const { resource } = await container\n  .item(\"product-1\", \"electronics\") \u002F\u002F id, partitionKey\n  .read\u003CProduct>();\n\nif (resource) {\n  console.log(resource.name);\n}\n",[1613],{"type":53,"tag":121,"props":1614,"children":1615},{"__ignoreMap":118},[1616,1648,1703,1736,1743,1760,1803],{"type":53,"tag":125,"props":1617,"children":1618},{"class":127,"line":128},[1619,1623,1627,1631,1635,1639,1643],{"type":53,"tag":125,"props":1620,"children":1621},{"style":469},[1622],{"type":59,"value":472},{"type":53,"tag":125,"props":1624,"children":1625},{"style":197},[1626],{"type":59,"value":361},{"type":53,"tag":125,"props":1628,"children":1629},{"style":191},[1630],{"type":59,"value":1545},{"type":53,"tag":125,"props":1632,"children":1633},{"style":197},[1634],{"type":59,"value":539},{"type":53,"tag":125,"props":1636,"children":1637},{"style":197},[1638],{"type":59,"value":1013},{"type":53,"tag":125,"props":1640,"children":1641},{"style":353},[1642],{"type":59,"value":1018},{"type":53,"tag":125,"props":1644,"children":1645},{"style":191},[1646],{"type":59,"value":1647}," container\n",{"type":53,"tag":125,"props":1649,"children":1650},{"class":127,"line":228},[1651,1656,1661,1665,1669,1673,1677,1681,1685,1689,1693,1698],{"type":53,"tag":125,"props":1652,"children":1653},{"style":197},[1654],{"type":59,"value":1655},"  .",{"type":53,"tag":125,"props":1657,"children":1658},{"style":489},[1659],{"type":59,"value":1660},"item",{"type":53,"tag":125,"props":1662,"children":1663},{"style":191},[1664],{"type":59,"value":496},{"type":53,"tag":125,"props":1666,"children":1667},{"style":197},[1668],{"type":59,"value":390},{"type":53,"tag":125,"props":1670,"children":1671},{"style":138},[1672],{"type":59,"value":1427},{"type":53,"tag":125,"props":1674,"children":1675},{"style":197},[1676],{"type":59,"value":390},{"type":53,"tag":125,"props":1678,"children":1679},{"style":197},[1680],{"type":59,"value":416},{"type":53,"tag":125,"props":1682,"children":1683},{"style":197},[1684],{"type":59,"value":381},{"type":53,"tag":125,"props":1686,"children":1687},{"style":138},[1688],{"type":59,"value":1455},{"type":53,"tag":125,"props":1690,"children":1691},{"style":197},[1692],{"type":59,"value":390},{"type":53,"tag":125,"props":1694,"children":1695},{"style":191},[1696],{"type":59,"value":1697},") ",{"type":53,"tag":125,"props":1699,"children":1700},{"style":278},[1701],{"type":59,"value":1702},"\u002F\u002F id, partitionKey\n",{"type":53,"tag":125,"props":1704,"children":1705},{"class":127,"line":252},[1706,1710,1715,1719,1723,1727,1732],{"type":53,"tag":125,"props":1707,"children":1708},{"style":197},[1709],{"type":59,"value":1655},{"type":53,"tag":125,"props":1711,"children":1712},{"style":489},[1713],{"type":59,"value":1714},"read",{"type":53,"tag":125,"props":1716,"children":1717},{"style":197},[1718],{"type":59,"value":210},{"type":53,"tag":125,"props":1720,"children":1721},{"style":132},[1722],{"type":59,"value":1589},{"type":53,"tag":125,"props":1724,"children":1725},{"style":197},[1726],{"type":59,"value":220},{"type":53,"tag":125,"props":1728,"children":1729},{"style":191},[1730],{"type":59,"value":1731},"()",{"type":53,"tag":125,"props":1733,"children":1734},{"style":197},[1735],{"type":59,"value":395},{"type":53,"tag":125,"props":1737,"children":1738},{"class":127,"line":274},[1739],{"type":53,"tag":125,"props":1740,"children":1741},{"emptyLinePlaceholder":452},[1742],{"type":59,"value":455},{"type":53,"tag":125,"props":1744,"children":1745},{"class":127,"line":284},[1746,1751,1756],{"type":53,"tag":125,"props":1747,"children":1748},{"style":353},[1749],{"type":59,"value":1750},"if",{"type":53,"tag":125,"props":1752,"children":1753},{"style":191},[1754],{"type":59,"value":1755}," (resource) ",{"type":53,"tag":125,"props":1757,"children":1758},{"style":197},[1759],{"type":59,"value":616},{"type":53,"tag":125,"props":1761,"children":1762},{"class":127,"line":306},[1763,1768,1772,1777,1781,1786,1790,1795,1799],{"type":53,"tag":125,"props":1764,"children":1765},{"style":191},[1766],{"type":59,"value":1767},"  console",{"type":53,"tag":125,"props":1769,"children":1770},{"style":197},[1771],{"type":59,"value":639},{"type":53,"tag":125,"props":1773,"children":1774},{"style":489},[1775],{"type":59,"value":1776},"log",{"type":53,"tag":125,"props":1778,"children":1779},{"style":504},[1780],{"type":59,"value":496},{"type":53,"tag":125,"props":1782,"children":1783},{"style":191},[1784],{"type":59,"value":1785},"resource",{"type":53,"tag":125,"props":1787,"children":1788},{"style":197},[1789],{"type":59,"value":639},{"type":53,"tag":125,"props":1791,"children":1792},{"style":191},[1793],{"type":59,"value":1794},"name",{"type":53,"tag":125,"props":1796,"children":1797},{"style":504},[1798],{"type":59,"value":544},{"type":53,"tag":125,"props":1800,"children":1801},{"style":197},[1802],{"type":59,"value":395},{"type":53,"tag":125,"props":1804,"children":1805},{"class":127,"line":559},[1806],{"type":53,"tag":125,"props":1807,"children":1808},{"style":197},[1809],{"type":59,"value":1372},{"type":53,"tag":334,"props":1811,"children":1813},{"id":1812},"update-document-replace",[1814],{"type":59,"value":1815},"Update Document (Replace)",{"type":53,"tag":113,"props":1817,"children":1819},{"className":342,"code":1818,"language":18,"meta":118,"style":118},"const { resource: existing } = await container\n  .item(\"product-1\", \"electronics\")\n  .read\u003CProduct>();\n\nif (existing) {\n  existing.price = 899.99;\n  const { resource: updated } = await container\n    .item(\"product-1\", \"electronics\")\n    .replace\u003CProduct>(existing);\n}\n",[1820],{"type":53,"tag":121,"props":1821,"children":1822},{"__ignoreMap":118},[1823,1864,1912,1943,1950,1966,1996,2037,2085,2126],{"type":53,"tag":125,"props":1824,"children":1825},{"class":127,"line":128},[1826,1830,1834,1839,1843,1848,1852,1856,1860],{"type":53,"tag":125,"props":1827,"children":1828},{"style":469},[1829],{"type":59,"value":472},{"type":53,"tag":125,"props":1831,"children":1832},{"style":197},[1833],{"type":59,"value":361},{"type":53,"tag":125,"props":1835,"children":1836},{"style":504},[1837],{"type":59,"value":1838}," resource",{"type":53,"tag":125,"props":1840,"children":1841},{"style":197},[1842],{"type":59,"value":512},{"type":53,"tag":125,"props":1844,"children":1845},{"style":191},[1846],{"type":59,"value":1847}," existing ",{"type":53,"tag":125,"props":1849,"children":1850},{"style":197},[1851],{"type":59,"value":539},{"type":53,"tag":125,"props":1853,"children":1854},{"style":197},[1855],{"type":59,"value":1013},{"type":53,"tag":125,"props":1857,"children":1858},{"style":353},[1859],{"type":59,"value":1018},{"type":53,"tag":125,"props":1861,"children":1862},{"style":191},[1863],{"type":59,"value":1647},{"type":53,"tag":125,"props":1865,"children":1866},{"class":127,"line":228},[1867,1871,1875,1879,1883,1887,1891,1895,1899,1903,1907],{"type":53,"tag":125,"props":1868,"children":1869},{"style":197},[1870],{"type":59,"value":1655},{"type":53,"tag":125,"props":1872,"children":1873},{"style":489},[1874],{"type":59,"value":1660},{"type":53,"tag":125,"props":1876,"children":1877},{"style":191},[1878],{"type":59,"value":496},{"type":53,"tag":125,"props":1880,"children":1881},{"style":197},[1882],{"type":59,"value":390},{"type":53,"tag":125,"props":1884,"children":1885},{"style":138},[1886],{"type":59,"value":1427},{"type":53,"tag":125,"props":1888,"children":1889},{"style":197},[1890],{"type":59,"value":390},{"type":53,"tag":125,"props":1892,"children":1893},{"style":197},[1894],{"type":59,"value":416},{"type":53,"tag":125,"props":1896,"children":1897},{"style":197},[1898],{"type":59,"value":381},{"type":53,"tag":125,"props":1900,"children":1901},{"style":138},[1902],{"type":59,"value":1455},{"type":53,"tag":125,"props":1904,"children":1905},{"style":197},[1906],{"type":59,"value":390},{"type":53,"tag":125,"props":1908,"children":1909},{"style":191},[1910],{"type":59,"value":1911},")\n",{"type":53,"tag":125,"props":1913,"children":1914},{"class":127,"line":252},[1915,1919,1923,1927,1931,1935,1939],{"type":53,"tag":125,"props":1916,"children":1917},{"style":197},[1918],{"type":59,"value":1655},{"type":53,"tag":125,"props":1920,"children":1921},{"style":489},[1922],{"type":59,"value":1714},{"type":53,"tag":125,"props":1924,"children":1925},{"style":197},[1926],{"type":59,"value":210},{"type":53,"tag":125,"props":1928,"children":1929},{"style":132},[1930],{"type":59,"value":1589},{"type":53,"tag":125,"props":1932,"children":1933},{"style":197},[1934],{"type":59,"value":220},{"type":53,"tag":125,"props":1936,"children":1937},{"style":191},[1938],{"type":59,"value":1731},{"type":53,"tag":125,"props":1940,"children":1941},{"style":197},[1942],{"type":59,"value":395},{"type":53,"tag":125,"props":1944,"children":1945},{"class":127,"line":274},[1946],{"type":53,"tag":125,"props":1947,"children":1948},{"emptyLinePlaceholder":452},[1949],{"type":59,"value":455},{"type":53,"tag":125,"props":1951,"children":1952},{"class":127,"line":284},[1953,1957,1962],{"type":53,"tag":125,"props":1954,"children":1955},{"style":353},[1956],{"type":59,"value":1750},{"type":53,"tag":125,"props":1958,"children":1959},{"style":191},[1960],{"type":59,"value":1961}," (existing) ",{"type":53,"tag":125,"props":1963,"children":1964},{"style":197},[1965],{"type":59,"value":616},{"type":53,"tag":125,"props":1967,"children":1968},{"class":127,"line":306},[1969,1974,1978,1983,1987,1992],{"type":53,"tag":125,"props":1970,"children":1971},{"style":191},[1972],{"type":59,"value":1973},"  existing",{"type":53,"tag":125,"props":1975,"children":1976},{"style":197},[1977],{"type":59,"value":639},{"type":53,"tag":125,"props":1979,"children":1980},{"style":191},[1981],{"type":59,"value":1982},"price",{"type":53,"tag":125,"props":1984,"children":1985},{"style":197},[1986],{"type":59,"value":1013},{"type":53,"tag":125,"props":1988,"children":1989},{"style":1505},[1990],{"type":59,"value":1991}," 899.99",{"type":53,"tag":125,"props":1993,"children":1994},{"style":197},[1995],{"type":59,"value":395},{"type":53,"tag":125,"props":1997,"children":1998},{"class":127,"line":559},[1999,2004,2008,2012,2016,2021,2025,2029,2033],{"type":53,"tag":125,"props":2000,"children":2001},{"style":469},[2002],{"type":59,"value":2003},"  const",{"type":53,"tag":125,"props":2005,"children":2006},{"style":197},[2007],{"type":59,"value":361},{"type":53,"tag":125,"props":2009,"children":2010},{"style":504},[2011],{"type":59,"value":1838},{"type":53,"tag":125,"props":2013,"children":2014},{"style":197},[2015],{"type":59,"value":512},{"type":53,"tag":125,"props":2017,"children":2018},{"style":191},[2019],{"type":59,"value":2020}," updated",{"type":53,"tag":125,"props":2022,"children":2023},{"style":197},[2024],{"type":59,"value":371},{"type":53,"tag":125,"props":2026,"children":2027},{"style":197},[2028],{"type":59,"value":1013},{"type":53,"tag":125,"props":2030,"children":2031},{"style":353},[2032],{"type":59,"value":1018},{"type":53,"tag":125,"props":2034,"children":2035},{"style":191},[2036],{"type":59,"value":1647},{"type":53,"tag":125,"props":2038,"children":2039},{"class":127,"line":568},[2040,2045,2049,2053,2057,2061,2065,2069,2073,2077,2081],{"type":53,"tag":125,"props":2041,"children":2042},{"style":197},[2043],{"type":59,"value":2044},"    .",{"type":53,"tag":125,"props":2046,"children":2047},{"style":489},[2048],{"type":59,"value":1660},{"type":53,"tag":125,"props":2050,"children":2051},{"style":504},[2052],{"type":59,"value":496},{"type":53,"tag":125,"props":2054,"children":2055},{"style":197},[2056],{"type":59,"value":390},{"type":53,"tag":125,"props":2058,"children":2059},{"style":138},[2060],{"type":59,"value":1427},{"type":53,"tag":125,"props":2062,"children":2063},{"style":197},[2064],{"type":59,"value":390},{"type":53,"tag":125,"props":2066,"children":2067},{"style":197},[2068],{"type":59,"value":416},{"type":53,"tag":125,"props":2070,"children":2071},{"style":197},[2072],{"type":59,"value":381},{"type":53,"tag":125,"props":2074,"children":2075},{"style":138},[2076],{"type":59,"value":1455},{"type":53,"tag":125,"props":2078,"children":2079},{"style":197},[2080],{"type":59,"value":390},{"type":53,"tag":125,"props":2082,"children":2083},{"style":504},[2084],{"type":59,"value":1911},{"type":53,"tag":125,"props":2086,"children":2087},{"class":127,"line":577},[2088,2092,2097,2101,2105,2109,2113,2118,2122],{"type":53,"tag":125,"props":2089,"children":2090},{"style":197},[2091],{"type":59,"value":2044},{"type":53,"tag":125,"props":2093,"children":2094},{"style":489},[2095],{"type":59,"value":2096},"replace",{"type":53,"tag":125,"props":2098,"children":2099},{"style":197},[2100],{"type":59,"value":210},{"type":53,"tag":125,"props":2102,"children":2103},{"style":132},[2104],{"type":59,"value":1589},{"type":53,"tag":125,"props":2106,"children":2107},{"style":197},[2108],{"type":59,"value":220},{"type":53,"tag":125,"props":2110,"children":2111},{"style":504},[2112],{"type":59,"value":496},{"type":53,"tag":125,"props":2114,"children":2115},{"style":191},[2116],{"type":59,"value":2117},"existing",{"type":53,"tag":125,"props":2119,"children":2120},{"style":504},[2121],{"type":59,"value":544},{"type":53,"tag":125,"props":2123,"children":2124},{"style":197},[2125],{"type":59,"value":395},{"type":53,"tag":125,"props":2127,"children":2128},{"class":127,"line":585},[2129],{"type":53,"tag":125,"props":2130,"children":2131},{"style":197},[2132],{"type":59,"value":1372},{"type":53,"tag":334,"props":2134,"children":2136},{"id":2135},"upsert-document",[2137],{"type":59,"value":2138},"Upsert Document",{"type":53,"tag":113,"props":2140,"children":2142},{"className":342,"code":2141,"language":18,"meta":118,"style":118},"const item: Product = {\n  id: \"product-1\",\n  partitionKey: \"electronics\",\n  name: \"Laptop Pro\",\n  price: 1299.99,\n};\n\nconst { resource } = await container.items.upsert\u003CProduct>(item);\n",[2143],{"type":53,"tag":121,"props":2144,"children":2145},{"__ignoreMap":118},[2146,2173,2200,2227,2255,2275,2282,2289],{"type":53,"tag":125,"props":2147,"children":2148},{"class":127,"line":128},[2149,2153,2157,2161,2165,2169],{"type":53,"tag":125,"props":2150,"children":2151},{"style":469},[2152],{"type":59,"value":472},{"type":53,"tag":125,"props":2154,"children":2155},{"style":191},[2156],{"type":59,"value":1391},{"type":53,"tag":125,"props":2158,"children":2159},{"style":197},[2160],{"type":59,"value":512},{"type":53,"tag":125,"props":2162,"children":2163},{"style":132},[2164],{"type":59,"value":1279},{"type":53,"tag":125,"props":2166,"children":2167},{"style":197},[2168],{"type":59,"value":1013},{"type":53,"tag":125,"props":2170,"children":2171},{"style":197},[2172],{"type":59,"value":1284},{"type":53,"tag":125,"props":2174,"children":2175},{"class":127,"line":228},[2176,2180,2184,2188,2192,2196],{"type":53,"tag":125,"props":2177,"children":2178},{"style":504},[2179],{"type":59,"value":1057},{"type":53,"tag":125,"props":2181,"children":2182},{"style":197},[2183],{"type":59,"value":512},{"type":53,"tag":125,"props":2185,"children":2186},{"style":197},[2187],{"type":59,"value":381},{"type":53,"tag":125,"props":2189,"children":2190},{"style":138},[2191],{"type":59,"value":1427},{"type":53,"tag":125,"props":2193,"children":2194},{"style":197},[2195],{"type":59,"value":390},{"type":53,"tag":125,"props":2197,"children":2198},{"style":197},[2199],{"type":59,"value":680},{"type":53,"tag":125,"props":2201,"children":2202},{"class":127,"line":252},[2203,2207,2211,2215,2219,2223],{"type":53,"tag":125,"props":2204,"children":2205},{"style":504},[2206],{"type":59,"value":1194},{"type":53,"tag":125,"props":2208,"children":2209},{"style":197},[2210],{"type":59,"value":512},{"type":53,"tag":125,"props":2212,"children":2213},{"style":197},[2214],{"type":59,"value":381},{"type":53,"tag":125,"props":2216,"children":2217},{"style":138},[2218],{"type":59,"value":1455},{"type":53,"tag":125,"props":2220,"children":2221},{"style":197},[2222],{"type":59,"value":390},{"type":53,"tag":125,"props":2224,"children":2225},{"style":197},[2226],{"type":59,"value":680},{"type":53,"tag":125,"props":2228,"children":2229},{"class":127,"line":274},[2230,2234,2238,2242,2247,2251],{"type":53,"tag":125,"props":2231,"children":2232},{"style":504},[2233],{"type":59,"value":1331},{"type":53,"tag":125,"props":2235,"children":2236},{"style":197},[2237],{"type":59,"value":512},{"type":53,"tag":125,"props":2239,"children":2240},{"style":197},[2241],{"type":59,"value":381},{"type":53,"tag":125,"props":2243,"children":2244},{"style":138},[2245],{"type":59,"value":2246},"Laptop Pro",{"type":53,"tag":125,"props":2248,"children":2249},{"style":197},[2250],{"type":59,"value":390},{"type":53,"tag":125,"props":2252,"children":2253},{"style":197},[2254],{"type":59,"value":680},{"type":53,"tag":125,"props":2256,"children":2257},{"class":127,"line":284},[2258,2262,2266,2271],{"type":53,"tag":125,"props":2259,"children":2260},{"style":504},[2261],{"type":59,"value":1351},{"type":53,"tag":125,"props":2263,"children":2264},{"style":197},[2265],{"type":59,"value":512},{"type":53,"tag":125,"props":2267,"children":2268},{"style":1505},[2269],{"type":59,"value":2270}," 1299.99",{"type":53,"tag":125,"props":2272,"children":2273},{"style":197},[2274],{"type":59,"value":680},{"type":53,"tag":125,"props":2276,"children":2277},{"class":127,"line":306},[2278],{"type":53,"tag":125,"props":2279,"children":2280},{"style":197},[2281],{"type":59,"value":1520},{"type":53,"tag":125,"props":2283,"children":2284},{"class":127,"line":559},[2285],{"type":53,"tag":125,"props":2286,"children":2287},{"emptyLinePlaceholder":452},[2288],{"type":59,"value":455},{"type":53,"tag":125,"props":2290,"children":2291},{"class":127,"line":568},[2292,2296,2300,2304,2308,2312,2316,2320,2324,2328,2332,2337,2341,2345,2349,2353],{"type":53,"tag":125,"props":2293,"children":2294},{"style":469},[2295],{"type":59,"value":472},{"type":53,"tag":125,"props":2297,"children":2298},{"style":197},[2299],{"type":59,"value":361},{"type":53,"tag":125,"props":2301,"children":2302},{"style":191},[2303],{"type":59,"value":1545},{"type":53,"tag":125,"props":2305,"children":2306},{"style":197},[2307],{"type":59,"value":539},{"type":53,"tag":125,"props":2309,"children":2310},{"style":197},[2311],{"type":59,"value":1013},{"type":53,"tag":125,"props":2313,"children":2314},{"style":353},[2315],{"type":59,"value":1018},{"type":53,"tag":125,"props":2317,"children":2318},{"style":191},[2319],{"type":59,"value":1562},{"type":53,"tag":125,"props":2321,"children":2322},{"style":197},[2323],{"type":59,"value":639},{"type":53,"tag":125,"props":2325,"children":2326},{"style":191},[2327],{"type":59,"value":1571},{"type":53,"tag":125,"props":2329,"children":2330},{"style":197},[2331],{"type":59,"value":639},{"type":53,"tag":125,"props":2333,"children":2334},{"style":489},[2335],{"type":59,"value":2336},"upsert",{"type":53,"tag":125,"props":2338,"children":2339},{"style":197},[2340],{"type":59,"value":210},{"type":53,"tag":125,"props":2342,"children":2343},{"style":132},[2344],{"type":59,"value":1589},{"type":53,"tag":125,"props":2346,"children":2347},{"style":197},[2348],{"type":59,"value":220},{"type":53,"tag":125,"props":2350,"children":2351},{"style":191},[2352],{"type":59,"value":1598},{"type":53,"tag":125,"props":2354,"children":2355},{"style":197},[2356],{"type":59,"value":395},{"type":53,"tag":334,"props":2358,"children":2360},{"id":2359},"delete-document",[2361],{"type":59,"value":2362},"Delete Document",{"type":53,"tag":113,"props":2364,"children":2366},{"className":342,"code":2365,"language":18,"meta":118,"style":118},"await container.item(\"product-1\", \"electronics\").delete();\n",[2367],{"type":53,"tag":121,"props":2368,"children":2369},{"__ignoreMap":118},[2370],{"type":53,"tag":125,"props":2371,"children":2372},{"class":127,"line":128},[2373,2378,2382,2386,2390,2394,2398,2402,2406,2410,2414,2418,2422,2426,2430,2435,2439],{"type":53,"tag":125,"props":2374,"children":2375},{"style":353},[2376],{"type":59,"value":2377},"await",{"type":53,"tag":125,"props":2379,"children":2380},{"style":191},[2381],{"type":59,"value":1562},{"type":53,"tag":125,"props":2383,"children":2384},{"style":197},[2385],{"type":59,"value":639},{"type":53,"tag":125,"props":2387,"children":2388},{"style":489},[2389],{"type":59,"value":1660},{"type":53,"tag":125,"props":2391,"children":2392},{"style":191},[2393],{"type":59,"value":496},{"type":53,"tag":125,"props":2395,"children":2396},{"style":197},[2397],{"type":59,"value":390},{"type":53,"tag":125,"props":2399,"children":2400},{"style":138},[2401],{"type":59,"value":1427},{"type":53,"tag":125,"props":2403,"children":2404},{"style":197},[2405],{"type":59,"value":390},{"type":53,"tag":125,"props":2407,"children":2408},{"style":197},[2409],{"type":59,"value":416},{"type":53,"tag":125,"props":2411,"children":2412},{"style":197},[2413],{"type":59,"value":381},{"type":53,"tag":125,"props":2415,"children":2416},{"style":138},[2417],{"type":59,"value":1455},{"type":53,"tag":125,"props":2419,"children":2420},{"style":197},[2421],{"type":59,"value":390},{"type":53,"tag":125,"props":2423,"children":2424},{"style":191},[2425],{"type":59,"value":544},{"type":53,"tag":125,"props":2427,"children":2428},{"style":197},[2429],{"type":59,"value":639},{"type":53,"tag":125,"props":2431,"children":2432},{"style":489},[2433],{"type":59,"value":2434},"delete",{"type":53,"tag":125,"props":2436,"children":2437},{"style":191},[2438],{"type":59,"value":1731},{"type":53,"tag":125,"props":2440,"children":2441},{"style":197},[2442],{"type":59,"value":395},{"type":53,"tag":334,"props":2444,"children":2446},{"id":2445},"patch-document-partial-update",[2447],{"type":59,"value":2448},"Patch Document (Partial Update)",{"type":53,"tag":113,"props":2450,"children":2452},{"className":342,"code":2451,"language":18,"meta":118,"style":118},"import { PatchOperation } from \"@azure\u002Fcosmos\";\n\nconst operations: PatchOperation[] = [\n  { op: \"replace\", path: \"\u002Fprice\", value: 799.99 },\n  { op: \"add\", path: \"\u002Fdiscount\", value: true },\n  { op: \"remove\", path: \"\u002FoldField\" },\n];\n\nconst { resource } = await container\n  .item(\"product-1\", \"electronics\")\n  .patch\u003CProduct>(operations);\n",[2453],{"type":53,"tag":121,"props":2454,"children":2455},{"__ignoreMap":118},[2456,2496,2503,2537,2615,2690,2747,2758,2765,2796,2843],{"type":53,"tag":125,"props":2457,"children":2458},{"class":127,"line":128},[2459,2463,2467,2472,2476,2480,2484,2488,2492],{"type":53,"tag":125,"props":2460,"children":2461},{"style":353},[2462],{"type":59,"value":356},{"type":53,"tag":125,"props":2464,"children":2465},{"style":197},[2466],{"type":59,"value":361},{"type":53,"tag":125,"props":2468,"children":2469},{"style":191},[2470],{"type":59,"value":2471}," PatchOperation",{"type":53,"tag":125,"props":2473,"children":2474},{"style":197},[2475],{"type":59,"value":371},{"type":53,"tag":125,"props":2477,"children":2478},{"style":353},[2479],{"type":59,"value":376},{"type":53,"tag":125,"props":2481,"children":2482},{"style":197},[2483],{"type":59,"value":381},{"type":53,"tag":125,"props":2485,"children":2486},{"style":138},[2487],{"type":59,"value":48},{"type":53,"tag":125,"props":2489,"children":2490},{"style":197},[2491],{"type":59,"value":390},{"type":53,"tag":125,"props":2493,"children":2494},{"style":197},[2495],{"type":59,"value":395},{"type":53,"tag":125,"props":2497,"children":2498},{"class":127,"line":228},[2499],{"type":53,"tag":125,"props":2500,"children":2501},{"emptyLinePlaceholder":452},[2502],{"type":59,"value":455},{"type":53,"tag":125,"props":2504,"children":2505},{"class":127,"line":252},[2506,2510,2515,2519,2523,2528,2532],{"type":53,"tag":125,"props":2507,"children":2508},{"style":469},[2509],{"type":59,"value":472},{"type":53,"tag":125,"props":2511,"children":2512},{"style":191},[2513],{"type":59,"value":2514}," operations",{"type":53,"tag":125,"props":2516,"children":2517},{"style":197},[2518],{"type":59,"value":512},{"type":53,"tag":125,"props":2520,"children":2521},{"style":132},[2522],{"type":59,"value":2471},{"type":53,"tag":125,"props":2524,"children":2525},{"style":191},[2526],{"type":59,"value":2527},"[] ",{"type":53,"tag":125,"props":2529,"children":2530},{"style":197},[2531],{"type":59,"value":200},{"type":53,"tag":125,"props":2533,"children":2534},{"style":191},[2535],{"type":59,"value":2536}," [\n",{"type":53,"tag":125,"props":2538,"children":2539},{"class":127,"line":274},[2540,2545,2550,2554,2558,2562,2566,2570,2575,2579,2583,2588,2592,2596,2601,2605,2610],{"type":53,"tag":125,"props":2541,"children":2542},{"style":197},[2543],{"type":59,"value":2544},"  {",{"type":53,"tag":125,"props":2546,"children":2547},{"style":504},[2548],{"type":59,"value":2549}," op",{"type":53,"tag":125,"props":2551,"children":2552},{"style":197},[2553],{"type":59,"value":512},{"type":53,"tag":125,"props":2555,"children":2556},{"style":197},[2557],{"type":59,"value":381},{"type":53,"tag":125,"props":2559,"children":2560},{"style":138},[2561],{"type":59,"value":2096},{"type":53,"tag":125,"props":2563,"children":2564},{"style":197},[2565],{"type":59,"value":390},{"type":53,"tag":125,"props":2567,"children":2568},{"style":197},[2569],{"type":59,"value":416},{"type":53,"tag":125,"props":2571,"children":2572},{"style":504},[2573],{"type":59,"value":2574}," path",{"type":53,"tag":125,"props":2576,"children":2577},{"style":197},[2578],{"type":59,"value":512},{"type":53,"tag":125,"props":2580,"children":2581},{"style":197},[2582],{"type":59,"value":381},{"type":53,"tag":125,"props":2584,"children":2585},{"style":138},[2586],{"type":59,"value":2587},"\u002Fprice",{"type":53,"tag":125,"props":2589,"children":2590},{"style":197},[2591],{"type":59,"value":390},{"type":53,"tag":125,"props":2593,"children":2594},{"style":197},[2595],{"type":59,"value":416},{"type":53,"tag":125,"props":2597,"children":2598},{"style":504},[2599],{"type":59,"value":2600}," value",{"type":53,"tag":125,"props":2602,"children":2603},{"style":197},[2604],{"type":59,"value":512},{"type":53,"tag":125,"props":2606,"children":2607},{"style":1505},[2608],{"type":59,"value":2609}," 799.99",{"type":53,"tag":125,"props":2611,"children":2612},{"style":197},[2613],{"type":59,"value":2614}," },\n",{"type":53,"tag":125,"props":2616,"children":2617},{"class":127,"line":284},[2618,2622,2626,2630,2634,2639,2643,2647,2651,2655,2659,2664,2668,2672,2676,2680,2686],{"type":53,"tag":125,"props":2619,"children":2620},{"style":197},[2621],{"type":59,"value":2544},{"type":53,"tag":125,"props":2623,"children":2624},{"style":504},[2625],{"type":59,"value":2549},{"type":53,"tag":125,"props":2627,"children":2628},{"style":197},[2629],{"type":59,"value":512},{"type":53,"tag":125,"props":2631,"children":2632},{"style":197},[2633],{"type":59,"value":381},{"type":53,"tag":125,"props":2635,"children":2636},{"style":138},[2637],{"type":59,"value":2638},"add",{"type":53,"tag":125,"props":2640,"children":2641},{"style":197},[2642],{"type":59,"value":390},{"type":53,"tag":125,"props":2644,"children":2645},{"style":197},[2646],{"type":59,"value":416},{"type":53,"tag":125,"props":2648,"children":2649},{"style":504},[2650],{"type":59,"value":2574},{"type":53,"tag":125,"props":2652,"children":2653},{"style":197},[2654],{"type":59,"value":512},{"type":53,"tag":125,"props":2656,"children":2657},{"style":197},[2658],{"type":59,"value":381},{"type":53,"tag":125,"props":2660,"children":2661},{"style":138},[2662],{"type":59,"value":2663},"\u002Fdiscount",{"type":53,"tag":125,"props":2665,"children":2666},{"style":197},[2667],{"type":59,"value":390},{"type":53,"tag":125,"props":2669,"children":2670},{"style":197},[2671],{"type":59,"value":416},{"type":53,"tag":125,"props":2673,"children":2674},{"style":504},[2675],{"type":59,"value":2600},{"type":53,"tag":125,"props":2677,"children":2678},{"style":197},[2679],{"type":59,"value":512},{"type":53,"tag":125,"props":2681,"children":2683},{"style":2682},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[2684],{"type":59,"value":2685}," true",{"type":53,"tag":125,"props":2687,"children":2688},{"style":197},[2689],{"type":59,"value":2614},{"type":53,"tag":125,"props":2691,"children":2692},{"class":127,"line":306},[2693,2697,2701,2705,2709,2714,2718,2722,2726,2730,2734,2739,2743],{"type":53,"tag":125,"props":2694,"children":2695},{"style":197},[2696],{"type":59,"value":2544},{"type":53,"tag":125,"props":2698,"children":2699},{"style":504},[2700],{"type":59,"value":2549},{"type":53,"tag":125,"props":2702,"children":2703},{"style":197},[2704],{"type":59,"value":512},{"type":53,"tag":125,"props":2706,"children":2707},{"style":197},[2708],{"type":59,"value":381},{"type":53,"tag":125,"props":2710,"children":2711},{"style":138},[2712],{"type":59,"value":2713},"remove",{"type":53,"tag":125,"props":2715,"children":2716},{"style":197},[2717],{"type":59,"value":390},{"type":53,"tag":125,"props":2719,"children":2720},{"style":197},[2721],{"type":59,"value":416},{"type":53,"tag":125,"props":2723,"children":2724},{"style":504},[2725],{"type":59,"value":2574},{"type":53,"tag":125,"props":2727,"children":2728},{"style":197},[2729],{"type":59,"value":512},{"type":53,"tag":125,"props":2731,"children":2732},{"style":197},[2733],{"type":59,"value":381},{"type":53,"tag":125,"props":2735,"children":2736},{"style":138},[2737],{"type":59,"value":2738},"\u002FoldField",{"type":53,"tag":125,"props":2740,"children":2741},{"style":197},[2742],{"type":59,"value":390},{"type":53,"tag":125,"props":2744,"children":2745},{"style":197},[2746],{"type":59,"value":2614},{"type":53,"tag":125,"props":2748,"children":2749},{"class":127,"line":559},[2750,2754],{"type":53,"tag":125,"props":2751,"children":2752},{"style":191},[2753],{"type":59,"value":534},{"type":53,"tag":125,"props":2755,"children":2756},{"style":197},[2757],{"type":59,"value":395},{"type":53,"tag":125,"props":2759,"children":2760},{"class":127,"line":568},[2761],{"type":53,"tag":125,"props":2762,"children":2763},{"emptyLinePlaceholder":452},[2764],{"type":59,"value":455},{"type":53,"tag":125,"props":2766,"children":2767},{"class":127,"line":577},[2768,2772,2776,2780,2784,2788,2792],{"type":53,"tag":125,"props":2769,"children":2770},{"style":469},[2771],{"type":59,"value":472},{"type":53,"tag":125,"props":2773,"children":2774},{"style":197},[2775],{"type":59,"value":361},{"type":53,"tag":125,"props":2777,"children":2778},{"style":191},[2779],{"type":59,"value":1545},{"type":53,"tag":125,"props":2781,"children":2782},{"style":197},[2783],{"type":59,"value":539},{"type":53,"tag":125,"props":2785,"children":2786},{"style":197},[2787],{"type":59,"value":1013},{"type":53,"tag":125,"props":2789,"children":2790},{"style":353},[2791],{"type":59,"value":1018},{"type":53,"tag":125,"props":2793,"children":2794},{"style":191},[2795],{"type":59,"value":1647},{"type":53,"tag":125,"props":2797,"children":2798},{"class":127,"line":585},[2799,2803,2807,2811,2815,2819,2823,2827,2831,2835,2839],{"type":53,"tag":125,"props":2800,"children":2801},{"style":197},[2802],{"type":59,"value":1655},{"type":53,"tag":125,"props":2804,"children":2805},{"style":489},[2806],{"type":59,"value":1660},{"type":53,"tag":125,"props":2808,"children":2809},{"style":191},[2810],{"type":59,"value":496},{"type":53,"tag":125,"props":2812,"children":2813},{"style":197},[2814],{"type":59,"value":390},{"type":53,"tag":125,"props":2816,"children":2817},{"style":138},[2818],{"type":59,"value":1427},{"type":53,"tag":125,"props":2820,"children":2821},{"style":197},[2822],{"type":59,"value":390},{"type":53,"tag":125,"props":2824,"children":2825},{"style":197},[2826],{"type":59,"value":416},{"type":53,"tag":125,"props":2828,"children":2829},{"style":197},[2830],{"type":59,"value":381},{"type":53,"tag":125,"props":2832,"children":2833},{"style":138},[2834],{"type":59,"value":1455},{"type":53,"tag":125,"props":2836,"children":2837},{"style":197},[2838],{"type":59,"value":390},{"type":53,"tag":125,"props":2840,"children":2841},{"style":191},[2842],{"type":59,"value":1911},{"type":53,"tag":125,"props":2844,"children":2845},{"class":127,"line":619},[2846,2850,2855,2859,2863,2867,2872],{"type":53,"tag":125,"props":2847,"children":2848},{"style":197},[2849],{"type":59,"value":1655},{"type":53,"tag":125,"props":2851,"children":2852},{"style":489},[2853],{"type":59,"value":2854},"patch",{"type":53,"tag":125,"props":2856,"children":2857},{"style":197},[2858],{"type":59,"value":210},{"type":53,"tag":125,"props":2860,"children":2861},{"style":132},[2862],{"type":59,"value":1589},{"type":53,"tag":125,"props":2864,"children":2865},{"style":197},[2866],{"type":59,"value":220},{"type":53,"tag":125,"props":2868,"children":2869},{"style":191},[2870],{"type":59,"value":2871},"(operations)",{"type":53,"tag":125,"props":2873,"children":2874},{"style":197},[2875],{"type":59,"value":395},{"type":53,"tag":106,"props":2877,"children":2879},{"id":2878},"queries",[2880],{"type":59,"value":2881},"Queries",{"type":53,"tag":334,"props":2883,"children":2885},{"id":2884},"simple-query",[2886],{"type":59,"value":2887},"Simple Query",{"type":53,"tag":113,"props":2889,"children":2891},{"className":342,"code":2890,"language":18,"meta":118,"style":118},"const { resources } = await container.items\n  .query\u003CProduct>(\"SELECT * FROM c WHERE c.price \u003C 1000\")\n  .fetchAll();\n",[2892],{"type":53,"tag":121,"props":2893,"children":2894},{"__ignoreMap":118},[2895,2936,2981],{"type":53,"tag":125,"props":2896,"children":2897},{"class":127,"line":128},[2898,2902,2906,2911,2915,2919,2923,2927,2931],{"type":53,"tag":125,"props":2899,"children":2900},{"style":469},[2901],{"type":59,"value":472},{"type":53,"tag":125,"props":2903,"children":2904},{"style":197},[2905],{"type":59,"value":361},{"type":53,"tag":125,"props":2907,"children":2908},{"style":191},[2909],{"type":59,"value":2910}," resources ",{"type":53,"tag":125,"props":2912,"children":2913},{"style":197},[2914],{"type":59,"value":539},{"type":53,"tag":125,"props":2916,"children":2917},{"style":197},[2918],{"type":59,"value":1013},{"type":53,"tag":125,"props":2920,"children":2921},{"style":353},[2922],{"type":59,"value":1018},{"type":53,"tag":125,"props":2924,"children":2925},{"style":191},[2926],{"type":59,"value":1562},{"type":53,"tag":125,"props":2928,"children":2929},{"style":197},[2930],{"type":59,"value":639},{"type":53,"tag":125,"props":2932,"children":2933},{"style":191},[2934],{"type":59,"value":2935},"items\n",{"type":53,"tag":125,"props":2937,"children":2938},{"class":127,"line":228},[2939,2943,2948,2952,2956,2960,2964,2968,2973,2977],{"type":53,"tag":125,"props":2940,"children":2941},{"style":197},[2942],{"type":59,"value":1655},{"type":53,"tag":125,"props":2944,"children":2945},{"style":489},[2946],{"type":59,"value":2947},"query",{"type":53,"tag":125,"props":2949,"children":2950},{"style":197},[2951],{"type":59,"value":210},{"type":53,"tag":125,"props":2953,"children":2954},{"style":132},[2955],{"type":59,"value":1589},{"type":53,"tag":125,"props":2957,"children":2958},{"style":197},[2959],{"type":59,"value":220},{"type":53,"tag":125,"props":2961,"children":2962},{"style":191},[2963],{"type":59,"value":496},{"type":53,"tag":125,"props":2965,"children":2966},{"style":197},[2967],{"type":59,"value":390},{"type":53,"tag":125,"props":2969,"children":2970},{"style":138},[2971],{"type":59,"value":2972},"SELECT * FROM c WHERE c.price \u003C 1000",{"type":53,"tag":125,"props":2974,"children":2975},{"style":197},[2976],{"type":59,"value":390},{"type":53,"tag":125,"props":2978,"children":2979},{"style":191},[2980],{"type":59,"value":1911},{"type":53,"tag":125,"props":2982,"children":2983},{"class":127,"line":252},[2984,2988,2993,2997],{"type":53,"tag":125,"props":2985,"children":2986},{"style":197},[2987],{"type":59,"value":1655},{"type":53,"tag":125,"props":2989,"children":2990},{"style":489},[2991],{"type":59,"value":2992},"fetchAll",{"type":53,"tag":125,"props":2994,"children":2995},{"style":191},[2996],{"type":59,"value":1731},{"type":53,"tag":125,"props":2998,"children":2999},{"style":197},[3000],{"type":59,"value":395},{"type":53,"tag":334,"props":3002,"children":3004},{"id":3003},"parameterized-query-recommended",[3005],{"type":59,"value":3006},"Parameterized Query (Recommended)",{"type":53,"tag":113,"props":3008,"children":3010},{"className":342,"code":3009,"language":18,"meta":118,"style":118},"import { SqlQuerySpec } from \"@azure\u002Fcosmos\";\n\nconst querySpec: SqlQuerySpec = {\n  query: \"SELECT * FROM c WHERE c.partitionKey = @category AND c.price \u003C @maxPrice\",\n  parameters: [\n    { name: \"@category\", value: \"electronics\" },\n    { name: \"@maxPrice\", value: 1000 },\n  ],\n};\n\nconst { resources } = await container.items\n  .query\u003CProduct>(querySpec)\n  .fetchAll();\n",[3011],{"type":53,"tag":121,"props":3012,"children":3013},{"__ignoreMap":118},[3014,3054,3061,3089,3118,3134,3192,3241,3253,3260,3267,3306,3334],{"type":53,"tag":125,"props":3015,"children":3016},{"class":127,"line":128},[3017,3021,3025,3030,3034,3038,3042,3046,3050],{"type":53,"tag":125,"props":3018,"children":3019},{"style":353},[3020],{"type":59,"value":356},{"type":53,"tag":125,"props":3022,"children":3023},{"style":197},[3024],{"type":59,"value":361},{"type":53,"tag":125,"props":3026,"children":3027},{"style":191},[3028],{"type":59,"value":3029}," SqlQuerySpec",{"type":53,"tag":125,"props":3031,"children":3032},{"style":197},[3033],{"type":59,"value":371},{"type":53,"tag":125,"props":3035,"children":3036},{"style":353},[3037],{"type":59,"value":376},{"type":53,"tag":125,"props":3039,"children":3040},{"style":197},[3041],{"type":59,"value":381},{"type":53,"tag":125,"props":3043,"children":3044},{"style":138},[3045],{"type":59,"value":48},{"type":53,"tag":125,"props":3047,"children":3048},{"style":197},[3049],{"type":59,"value":390},{"type":53,"tag":125,"props":3051,"children":3052},{"style":197},[3053],{"type":59,"value":395},{"type":53,"tag":125,"props":3055,"children":3056},{"class":127,"line":228},[3057],{"type":53,"tag":125,"props":3058,"children":3059},{"emptyLinePlaceholder":452},[3060],{"type":59,"value":455},{"type":53,"tag":125,"props":3062,"children":3063},{"class":127,"line":252},[3064,3068,3073,3077,3081,3085],{"type":53,"tag":125,"props":3065,"children":3066},{"style":469},[3067],{"type":59,"value":472},{"type":53,"tag":125,"props":3069,"children":3070},{"style":191},[3071],{"type":59,"value":3072}," querySpec",{"type":53,"tag":125,"props":3074,"children":3075},{"style":197},[3076],{"type":59,"value":512},{"type":53,"tag":125,"props":3078,"children":3079},{"style":132},[3080],{"type":59,"value":3029},{"type":53,"tag":125,"props":3082,"children":3083},{"style":197},[3084],{"type":59,"value":1013},{"type":53,"tag":125,"props":3086,"children":3087},{"style":197},[3088],{"type":59,"value":1284},{"type":53,"tag":125,"props":3090,"children":3091},{"class":127,"line":274},[3092,3097,3101,3105,3110,3114],{"type":53,"tag":125,"props":3093,"children":3094},{"style":504},[3095],{"type":59,"value":3096},"  query",{"type":53,"tag":125,"props":3098,"children":3099},{"style":197},[3100],{"type":59,"value":512},{"type":53,"tag":125,"props":3102,"children":3103},{"style":197},[3104],{"type":59,"value":381},{"type":53,"tag":125,"props":3106,"children":3107},{"style":138},[3108],{"type":59,"value":3109},"SELECT * FROM c WHERE c.partitionKey = @category AND c.price \u003C @maxPrice",{"type":53,"tag":125,"props":3111,"children":3112},{"style":197},[3113],{"type":59,"value":390},{"type":53,"tag":125,"props":3115,"children":3116},{"style":197},[3117],{"type":59,"value":680},{"type":53,"tag":125,"props":3119,"children":3120},{"class":127,"line":284},[3121,3126,3130],{"type":53,"tag":125,"props":3122,"children":3123},{"style":504},[3124],{"type":59,"value":3125},"  parameters",{"type":53,"tag":125,"props":3127,"children":3128},{"style":197},[3129],{"type":59,"value":512},{"type":53,"tag":125,"props":3131,"children":3132},{"style":191},[3133],{"type":59,"value":2536},{"type":53,"tag":125,"props":3135,"children":3136},{"class":127,"line":306},[3137,3142,3147,3151,3155,3160,3164,3168,3172,3176,3180,3184,3188],{"type":53,"tag":125,"props":3138,"children":3139},{"style":197},[3140],{"type":59,"value":3141},"    {",{"type":53,"tag":125,"props":3143,"children":3144},{"style":504},[3145],{"type":59,"value":3146}," name",{"type":53,"tag":125,"props":3148,"children":3149},{"style":197},[3150],{"type":59,"value":512},{"type":53,"tag":125,"props":3152,"children":3153},{"style":197},[3154],{"type":59,"value":381},{"type":53,"tag":125,"props":3156,"children":3157},{"style":138},[3158],{"type":59,"value":3159},"@category",{"type":53,"tag":125,"props":3161,"children":3162},{"style":197},[3163],{"type":59,"value":390},{"type":53,"tag":125,"props":3165,"children":3166},{"style":197},[3167],{"type":59,"value":416},{"type":53,"tag":125,"props":3169,"children":3170},{"style":504},[3171],{"type":59,"value":2600},{"type":53,"tag":125,"props":3173,"children":3174},{"style":197},[3175],{"type":59,"value":512},{"type":53,"tag":125,"props":3177,"children":3178},{"style":197},[3179],{"type":59,"value":381},{"type":53,"tag":125,"props":3181,"children":3182},{"style":138},[3183],{"type":59,"value":1455},{"type":53,"tag":125,"props":3185,"children":3186},{"style":197},[3187],{"type":59,"value":390},{"type":53,"tag":125,"props":3189,"children":3190},{"style":197},[3191],{"type":59,"value":2614},{"type":53,"tag":125,"props":3193,"children":3194},{"class":127,"line":559},[3195,3199,3203,3207,3211,3216,3220,3224,3228,3232,3237],{"type":53,"tag":125,"props":3196,"children":3197},{"style":197},[3198],{"type":59,"value":3141},{"type":53,"tag":125,"props":3200,"children":3201},{"style":504},[3202],{"type":59,"value":3146},{"type":53,"tag":125,"props":3204,"children":3205},{"style":197},[3206],{"type":59,"value":512},{"type":53,"tag":125,"props":3208,"children":3209},{"style":197},[3210],{"type":59,"value":381},{"type":53,"tag":125,"props":3212,"children":3213},{"style":138},[3214],{"type":59,"value":3215},"@maxPrice",{"type":53,"tag":125,"props":3217,"children":3218},{"style":197},[3219],{"type":59,"value":390},{"type":53,"tag":125,"props":3221,"children":3222},{"style":197},[3223],{"type":59,"value":416},{"type":53,"tag":125,"props":3225,"children":3226},{"style":504},[3227],{"type":59,"value":2600},{"type":53,"tag":125,"props":3229,"children":3230},{"style":197},[3231],{"type":59,"value":512},{"type":53,"tag":125,"props":3233,"children":3234},{"style":1505},[3235],{"type":59,"value":3236}," 1000",{"type":53,"tag":125,"props":3238,"children":3239},{"style":197},[3240],{"type":59,"value":2614},{"type":53,"tag":125,"props":3242,"children":3243},{"class":127,"line":568},[3244,3249],{"type":53,"tag":125,"props":3245,"children":3246},{"style":191},[3247],{"type":59,"value":3248},"  ]",{"type":53,"tag":125,"props":3250,"children":3251},{"style":197},[3252],{"type":59,"value":680},{"type":53,"tag":125,"props":3254,"children":3255},{"class":127,"line":577},[3256],{"type":53,"tag":125,"props":3257,"children":3258},{"style":197},[3259],{"type":59,"value":1520},{"type":53,"tag":125,"props":3261,"children":3262},{"class":127,"line":585},[3263],{"type":53,"tag":125,"props":3264,"children":3265},{"emptyLinePlaceholder":452},[3266],{"type":59,"value":455},{"type":53,"tag":125,"props":3268,"children":3269},{"class":127,"line":619},[3270,3274,3278,3282,3286,3290,3294,3298,3302],{"type":53,"tag":125,"props":3271,"children":3272},{"style":469},[3273],{"type":59,"value":472},{"type":53,"tag":125,"props":3275,"children":3276},{"style":197},[3277],{"type":59,"value":361},{"type":53,"tag":125,"props":3279,"children":3280},{"style":191},[3281],{"type":59,"value":2910},{"type":53,"tag":125,"props":3283,"children":3284},{"style":197},[3285],{"type":59,"value":539},{"type":53,"tag":125,"props":3287,"children":3288},{"style":197},[3289],{"type":59,"value":1013},{"type":53,"tag":125,"props":3291,"children":3292},{"style":353},[3293],{"type":59,"value":1018},{"type":53,"tag":125,"props":3295,"children":3296},{"style":191},[3297],{"type":59,"value":1562},{"type":53,"tag":125,"props":3299,"children":3300},{"style":197},[3301],{"type":59,"value":639},{"type":53,"tag":125,"props":3303,"children":3304},{"style":191},[3305],{"type":59,"value":2935},{"type":53,"tag":125,"props":3307,"children":3308},{"class":127,"line":660},[3309,3313,3317,3321,3325,3329],{"type":53,"tag":125,"props":3310,"children":3311},{"style":197},[3312],{"type":59,"value":1655},{"type":53,"tag":125,"props":3314,"children":3315},{"style":489},[3316],{"type":59,"value":2947},{"type":53,"tag":125,"props":3318,"children":3319},{"style":197},[3320],{"type":59,"value":210},{"type":53,"tag":125,"props":3322,"children":3323},{"style":132},[3324],{"type":59,"value":1589},{"type":53,"tag":125,"props":3326,"children":3327},{"style":197},[3328],{"type":59,"value":220},{"type":53,"tag":125,"props":3330,"children":3331},{"style":191},[3332],{"type":59,"value":3333},"(querySpec)\n",{"type":53,"tag":125,"props":3335,"children":3336},{"class":127,"line":683},[3337,3341,3345,3349],{"type":53,"tag":125,"props":3338,"children":3339},{"style":197},[3340],{"type":59,"value":1655},{"type":53,"tag":125,"props":3342,"children":3343},{"style":489},[3344],{"type":59,"value":2992},{"type":53,"tag":125,"props":3346,"children":3347},{"style":191},[3348],{"type":59,"value":1731},{"type":53,"tag":125,"props":3350,"children":3351},{"style":197},[3352],{"type":59,"value":395},{"type":53,"tag":334,"props":3354,"children":3356},{"id":3355},"query-with-pagination",[3357],{"type":59,"value":3358},"Query with Pagination",{"type":53,"tag":113,"props":3360,"children":3362},{"className":342,"code":3361,"language":18,"meta":118,"style":118},"const queryIterator = container.items.query\u003CProduct>(querySpec, {\n  maxItemCount: 10, \u002F\u002F Items per page\n});\n\nwhile (queryIterator.hasMoreResults()) {\n  const { resources, continuationToken } = await queryIterator.fetchNext();\n  console.log(`Page with ${resources?.length} items`);\n  \u002F\u002F Use continuationToken for next page if needed\n}\n",[3363],{"type":53,"tag":121,"props":3364,"children":3365},{"__ignoreMap":118},[3366,3427,3453,3468,3475,3506,3565,3635,3643],{"type":53,"tag":125,"props":3367,"children":3368},{"class":127,"line":128},[3369,3373,3378,3382,3386,3390,3394,3398,3402,3406,3410,3414,3419,3423],{"type":53,"tag":125,"props":3370,"children":3371},{"style":469},[3372],{"type":59,"value":472},{"type":53,"tag":125,"props":3374,"children":3375},{"style":191},[3376],{"type":59,"value":3377}," queryIterator ",{"type":53,"tag":125,"props":3379,"children":3380},{"style":197},[3381],{"type":59,"value":200},{"type":53,"tag":125,"props":3383,"children":3384},{"style":191},[3385],{"type":59,"value":1562},{"type":53,"tag":125,"props":3387,"children":3388},{"style":197},[3389],{"type":59,"value":639},{"type":53,"tag":125,"props":3391,"children":3392},{"style":191},[3393],{"type":59,"value":1571},{"type":53,"tag":125,"props":3395,"children":3396},{"style":197},[3397],{"type":59,"value":639},{"type":53,"tag":125,"props":3399,"children":3400},{"style":489},[3401],{"type":59,"value":2947},{"type":53,"tag":125,"props":3403,"children":3404},{"style":197},[3405],{"type":59,"value":210},{"type":53,"tag":125,"props":3407,"children":3408},{"style":132},[3409],{"type":59,"value":1589},{"type":53,"tag":125,"props":3411,"children":3412},{"style":197},[3413],{"type":59,"value":220},{"type":53,"tag":125,"props":3415,"children":3416},{"style":191},[3417],{"type":59,"value":3418},"(querySpec",{"type":53,"tag":125,"props":3420,"children":3421},{"style":197},[3422],{"type":59,"value":416},{"type":53,"tag":125,"props":3424,"children":3425},{"style":197},[3426],{"type":59,"value":1284},{"type":53,"tag":125,"props":3428,"children":3429},{"class":127,"line":228},[3430,3435,3439,3444,3448],{"type":53,"tag":125,"props":3431,"children":3432},{"style":504},[3433],{"type":59,"value":3434},"  maxItemCount",{"type":53,"tag":125,"props":3436,"children":3437},{"style":197},[3438],{"type":59,"value":512},{"type":53,"tag":125,"props":3440,"children":3441},{"style":1505},[3442],{"type":59,"value":3443}," 10",{"type":53,"tag":125,"props":3445,"children":3446},{"style":197},[3447],{"type":59,"value":416},{"type":53,"tag":125,"props":3449,"children":3450},{"style":278},[3451],{"type":59,"value":3452}," \u002F\u002F Items per page\n",{"type":53,"tag":125,"props":3454,"children":3455},{"class":127,"line":252},[3456,3460,3464],{"type":53,"tag":125,"props":3457,"children":3458},{"style":197},[3459],{"type":59,"value":539},{"type":53,"tag":125,"props":3461,"children":3462},{"style":191},[3463],{"type":59,"value":544},{"type":53,"tag":125,"props":3465,"children":3466},{"style":197},[3467],{"type":59,"value":395},{"type":53,"tag":125,"props":3469,"children":3470},{"class":127,"line":274},[3471],{"type":53,"tag":125,"props":3472,"children":3473},{"emptyLinePlaceholder":452},[3474],{"type":59,"value":455},{"type":53,"tag":125,"props":3476,"children":3477},{"class":127,"line":284},[3478,3483,3488,3492,3497,3502],{"type":53,"tag":125,"props":3479,"children":3480},{"style":353},[3481],{"type":59,"value":3482},"while",{"type":53,"tag":125,"props":3484,"children":3485},{"style":191},[3486],{"type":59,"value":3487}," (queryIterator",{"type":53,"tag":125,"props":3489,"children":3490},{"style":197},[3491],{"type":59,"value":639},{"type":53,"tag":125,"props":3493,"children":3494},{"style":489},[3495],{"type":59,"value":3496},"hasMoreResults",{"type":53,"tag":125,"props":3498,"children":3499},{"style":191},[3500],{"type":59,"value":3501},"()) ",{"type":53,"tag":125,"props":3503,"children":3504},{"style":197},[3505],{"type":59,"value":616},{"type":53,"tag":125,"props":3507,"children":3508},{"class":127,"line":306},[3509,3513,3517,3522,3526,3531,3535,3539,3543,3548,3552,3557,3561],{"type":53,"tag":125,"props":3510,"children":3511},{"style":469},[3512],{"type":59,"value":2003},{"type":53,"tag":125,"props":3514,"children":3515},{"style":197},[3516],{"type":59,"value":361},{"type":53,"tag":125,"props":3518,"children":3519},{"style":191},[3520],{"type":59,"value":3521}," resources",{"type":53,"tag":125,"props":3523,"children":3524},{"style":197},[3525],{"type":59,"value":416},{"type":53,"tag":125,"props":3527,"children":3528},{"style":191},[3529],{"type":59,"value":3530}," continuationToken",{"type":53,"tag":125,"props":3532,"children":3533},{"style":197},[3534],{"type":59,"value":371},{"type":53,"tag":125,"props":3536,"children":3537},{"style":197},[3538],{"type":59,"value":1013},{"type":53,"tag":125,"props":3540,"children":3541},{"style":353},[3542],{"type":59,"value":1018},{"type":53,"tag":125,"props":3544,"children":3545},{"style":191},[3546],{"type":59,"value":3547}," queryIterator",{"type":53,"tag":125,"props":3549,"children":3550},{"style":197},[3551],{"type":59,"value":639},{"type":53,"tag":125,"props":3553,"children":3554},{"style":489},[3555],{"type":59,"value":3556},"fetchNext",{"type":53,"tag":125,"props":3558,"children":3559},{"style":504},[3560],{"type":59,"value":1731},{"type":53,"tag":125,"props":3562,"children":3563},{"style":197},[3564],{"type":59,"value":395},{"type":53,"tag":125,"props":3566,"children":3567},{"class":127,"line":559},[3568,3572,3576,3580,3584,3589,3594,3599,3604,3609,3614,3618,3623,3627,3631],{"type":53,"tag":125,"props":3569,"children":3570},{"style":191},[3571],{"type":59,"value":1767},{"type":53,"tag":125,"props":3573,"children":3574},{"style":197},[3575],{"type":59,"value":639},{"type":53,"tag":125,"props":3577,"children":3578},{"style":489},[3579],{"type":59,"value":1776},{"type":53,"tag":125,"props":3581,"children":3582},{"style":504},[3583],{"type":59,"value":496},{"type":53,"tag":125,"props":3585,"children":3586},{"style":197},[3587],{"type":59,"value":3588},"`",{"type":53,"tag":125,"props":3590,"children":3591},{"style":138},[3592],{"type":59,"value":3593},"Page with ",{"type":53,"tag":125,"props":3595,"children":3596},{"style":197},[3597],{"type":59,"value":3598},"${",{"type":53,"tag":125,"props":3600,"children":3601},{"style":191},[3602],{"type":59,"value":3603},"resources",{"type":53,"tag":125,"props":3605,"children":3606},{"style":197},[3607],{"type":59,"value":3608},"?.",{"type":53,"tag":125,"props":3610,"children":3611},{"style":191},[3612],{"type":59,"value":3613},"length",{"type":53,"tag":125,"props":3615,"children":3616},{"style":197},[3617],{"type":59,"value":539},{"type":53,"tag":125,"props":3619,"children":3620},{"style":138},[3621],{"type":59,"value":3622}," items",{"type":53,"tag":125,"props":3624,"children":3625},{"style":197},[3626],{"type":59,"value":3588},{"type":53,"tag":125,"props":3628,"children":3629},{"style":504},[3630],{"type":59,"value":544},{"type":53,"tag":125,"props":3632,"children":3633},{"style":197},[3634],{"type":59,"value":395},{"type":53,"tag":125,"props":3636,"children":3637},{"class":127,"line":568},[3638],{"type":53,"tag":125,"props":3639,"children":3640},{"style":278},[3641],{"type":59,"value":3642},"  \u002F\u002F Use continuationToken for next page if needed\n",{"type":53,"tag":125,"props":3644,"children":3645},{"class":127,"line":577},[3646],{"type":53,"tag":125,"props":3647,"children":3648},{"style":197},[3649],{"type":59,"value":1372},{"type":53,"tag":334,"props":3651,"children":3653},{"id":3652},"cross-partition-query",[3654],{"type":59,"value":3655},"Cross-Partition Query",{"type":53,"tag":113,"props":3657,"children":3659},{"className":342,"code":3658,"language":18,"meta":118,"style":118},"const { resources } = await container.items\n  .query\u003CProduct>(\n    \"SELECT * FROM c WHERE c.price > 500\",\n    { enableCrossPartitionQuery: true }\n  )\n  .fetchAll();\n",[3660],{"type":53,"tag":121,"props":3661,"children":3662},{"__ignoreMap":118},[3663,3702,3730,3751,3776,3784],{"type":53,"tag":125,"props":3664,"children":3665},{"class":127,"line":128},[3666,3670,3674,3678,3682,3686,3690,3694,3698],{"type":53,"tag":125,"props":3667,"children":3668},{"style":469},[3669],{"type":59,"value":472},{"type":53,"tag":125,"props":3671,"children":3672},{"style":197},[3673],{"type":59,"value":361},{"type":53,"tag":125,"props":3675,"children":3676},{"style":191},[3677],{"type":59,"value":2910},{"type":53,"tag":125,"props":3679,"children":3680},{"style":197},[3681],{"type":59,"value":539},{"type":53,"tag":125,"props":3683,"children":3684},{"style":197},[3685],{"type":59,"value":1013},{"type":53,"tag":125,"props":3687,"children":3688},{"style":353},[3689],{"type":59,"value":1018},{"type":53,"tag":125,"props":3691,"children":3692},{"style":191},[3693],{"type":59,"value":1562},{"type":53,"tag":125,"props":3695,"children":3696},{"style":197},[3697],{"type":59,"value":639},{"type":53,"tag":125,"props":3699,"children":3700},{"style":191},[3701],{"type":59,"value":2935},{"type":53,"tag":125,"props":3703,"children":3704},{"class":127,"line":228},[3705,3709,3713,3717,3721,3725],{"type":53,"tag":125,"props":3706,"children":3707},{"style":197},[3708],{"type":59,"value":1655},{"type":53,"tag":125,"props":3710,"children":3711},{"style":489},[3712],{"type":59,"value":2947},{"type":53,"tag":125,"props":3714,"children":3715},{"style":197},[3716],{"type":59,"value":210},{"type":53,"tag":125,"props":3718,"children":3719},{"style":132},[3720],{"type":59,"value":1589},{"type":53,"tag":125,"props":3722,"children":3723},{"style":197},[3724],{"type":59,"value":220},{"type":53,"tag":125,"props":3726,"children":3727},{"style":191},[3728],{"type":59,"value":3729},"(\n",{"type":53,"tag":125,"props":3731,"children":3732},{"class":127,"line":252},[3733,3738,3743,3747],{"type":53,"tag":125,"props":3734,"children":3735},{"style":197},[3736],{"type":59,"value":3737},"    \"",{"type":53,"tag":125,"props":3739,"children":3740},{"style":138},[3741],{"type":59,"value":3742},"SELECT * FROM c WHERE c.price > 500",{"type":53,"tag":125,"props":3744,"children":3745},{"style":197},[3746],{"type":59,"value":390},{"type":53,"tag":125,"props":3748,"children":3749},{"style":197},[3750],{"type":59,"value":680},{"type":53,"tag":125,"props":3752,"children":3753},{"class":127,"line":274},[3754,3758,3763,3767,3771],{"type":53,"tag":125,"props":3755,"children":3756},{"style":197},[3757],{"type":59,"value":3141},{"type":53,"tag":125,"props":3759,"children":3760},{"style":504},[3761],{"type":59,"value":3762}," enableCrossPartitionQuery",{"type":53,"tag":125,"props":3764,"children":3765},{"style":197},[3766],{"type":59,"value":512},{"type":53,"tag":125,"props":3768,"children":3769},{"style":2682},[3770],{"type":59,"value":2685},{"type":53,"tag":125,"props":3772,"children":3773},{"style":197},[3774],{"type":59,"value":3775}," }\n",{"type":53,"tag":125,"props":3777,"children":3778},{"class":127,"line":284},[3779],{"type":53,"tag":125,"props":3780,"children":3781},{"style":191},[3782],{"type":59,"value":3783},"  )\n",{"type":53,"tag":125,"props":3785,"children":3786},{"class":127,"line":306},[3787,3791,3795,3799],{"type":53,"tag":125,"props":3788,"children":3789},{"style":197},[3790],{"type":59,"value":1655},{"type":53,"tag":125,"props":3792,"children":3793},{"style":489},[3794],{"type":59,"value":2992},{"type":53,"tag":125,"props":3796,"children":3797},{"style":191},[3798],{"type":59,"value":1731},{"type":53,"tag":125,"props":3800,"children":3801},{"style":197},[3802],{"type":59,"value":395},{"type":53,"tag":106,"props":3804,"children":3806},{"id":3805},"bulk-operations",[3807],{"type":59,"value":3808},"Bulk Operations",{"type":53,"tag":334,"props":3810,"children":3812},{"id":3811},"execute-bulk-operations",[3813],{"type":59,"value":3814},"Execute Bulk Operations",{"type":53,"tag":113,"props":3816,"children":3818},{"className":342,"code":3817,"language":18,"meta":118,"style":118},"import { BulkOperationType, OperationInput } from \"@azure\u002Fcosmos\";\n\nconst operations: OperationInput[] = [\n  {\n    operationType: BulkOperationType.Create,\n    resourceBody: { id: \"1\", partitionKey: \"cat-a\", name: \"Item 1\" },\n  },\n  {\n    operationType: BulkOperationType.Upsert,\n    resourceBody: { id: \"2\", partitionKey: \"cat-a\", name: \"Item 2\" },\n  },\n  {\n    operationType: BulkOperationType.Read,\n    id: \"3\",\n    partitionKey: \"cat-b\",\n  },\n  {\n    operationType: BulkOperationType.Replace,\n    id: \"4\",\n    partitionKey: \"cat-b\",\n    resourceBody: { id: \"4\", partitionKey: \"cat-b\", name: \"Updated\" },\n  },\n  {\n    operationType: BulkOperationType.Delete,\n    id: \"5\",\n    partitionKey: \"cat-c\",\n  },\n  {\n    operationType: BulkOperationType.Patch,\n    id: \"6\",\n    partitionKey: \"cat-c\",\n    resourceBody: {\n      operations: [{ op: \"replace\", path: \"\u002Fname\", value: \"Patched\" }],\n    },\n  },\n];\n\nconst response = await container.items.executeBulkOperations(operations);\n\nresponse.forEach((result, index) => {\n  if (result.statusCode >= 200 && result.statusCode \u003C 300) {\n    console.log(`Operation ${index} succeeded`);\n  } else {\n    console.error(`Operation ${index} failed: ${result.statusCode}`);\n  }\n});\n",[3819],{"type":53,"tag":121,"props":3820,"children":3821},{"__ignoreMap":118},[3822,3871,3878,3909,3917,3946,4039,4047,4054,4082,4171,4178,4185,4213,4242,4271,4279,4287,4316,4345,4373,4462,4470,4478,4507,4536,4565,4573,4581,4610,4639,4667,4683,4786,4795,4803,4815,4823,4873,4881,4935,5008,5068,5086,5161,5170],{"type":53,"tag":125,"props":3823,"children":3824},{"class":127,"line":128},[3825,3829,3833,3838,3842,3847,3851,3855,3859,3863,3867],{"type":53,"tag":125,"props":3826,"children":3827},{"style":353},[3828],{"type":59,"value":356},{"type":53,"tag":125,"props":3830,"children":3831},{"style":197},[3832],{"type":59,"value":361},{"type":53,"tag":125,"props":3834,"children":3835},{"style":191},[3836],{"type":59,"value":3837}," BulkOperationType",{"type":53,"tag":125,"props":3839,"children":3840},{"style":197},[3841],{"type":59,"value":416},{"type":53,"tag":125,"props":3843,"children":3844},{"style":191},[3845],{"type":59,"value":3846}," OperationInput",{"type":53,"tag":125,"props":3848,"children":3849},{"style":197},[3850],{"type":59,"value":371},{"type":53,"tag":125,"props":3852,"children":3853},{"style":353},[3854],{"type":59,"value":376},{"type":53,"tag":125,"props":3856,"children":3857},{"style":197},[3858],{"type":59,"value":381},{"type":53,"tag":125,"props":3860,"children":3861},{"style":138},[3862],{"type":59,"value":48},{"type":53,"tag":125,"props":3864,"children":3865},{"style":197},[3866],{"type":59,"value":390},{"type":53,"tag":125,"props":3868,"children":3869},{"style":197},[3870],{"type":59,"value":395},{"type":53,"tag":125,"props":3872,"children":3873},{"class":127,"line":228},[3874],{"type":53,"tag":125,"props":3875,"children":3876},{"emptyLinePlaceholder":452},[3877],{"type":59,"value":455},{"type":53,"tag":125,"props":3879,"children":3880},{"class":127,"line":252},[3881,3885,3889,3893,3897,3901,3905],{"type":53,"tag":125,"props":3882,"children":3883},{"style":469},[3884],{"type":59,"value":472},{"type":53,"tag":125,"props":3886,"children":3887},{"style":191},[3888],{"type":59,"value":2514},{"type":53,"tag":125,"props":3890,"children":3891},{"style":197},[3892],{"type":59,"value":512},{"type":53,"tag":125,"props":3894,"children":3895},{"style":132},[3896],{"type":59,"value":3846},{"type":53,"tag":125,"props":3898,"children":3899},{"style":191},[3900],{"type":59,"value":2527},{"type":53,"tag":125,"props":3902,"children":3903},{"style":197},[3904],{"type":59,"value":200},{"type":53,"tag":125,"props":3906,"children":3907},{"style":191},[3908],{"type":59,"value":2536},{"type":53,"tag":125,"props":3910,"children":3911},{"class":127,"line":274},[3912],{"type":53,"tag":125,"props":3913,"children":3914},{"style":197},[3915],{"type":59,"value":3916},"  {\n",{"type":53,"tag":125,"props":3918,"children":3919},{"class":127,"line":284},[3920,3925,3929,3933,3937,3942],{"type":53,"tag":125,"props":3921,"children":3922},{"style":504},[3923],{"type":59,"value":3924},"    operationType",{"type":53,"tag":125,"props":3926,"children":3927},{"style":197},[3928],{"type":59,"value":512},{"type":53,"tag":125,"props":3930,"children":3931},{"style":191},[3932],{"type":59,"value":3837},{"type":53,"tag":125,"props":3934,"children":3935},{"style":197},[3936],{"type":59,"value":639},{"type":53,"tag":125,"props":3938,"children":3939},{"style":191},[3940],{"type":59,"value":3941},"Create",{"type":53,"tag":125,"props":3943,"children":3944},{"style":197},[3945],{"type":59,"value":680},{"type":53,"tag":125,"props":3947,"children":3948},{"class":127,"line":306},[3949,3954,3958,3962,3967,3971,3975,3980,3984,3988,3993,3997,4001,4006,4010,4014,4018,4022,4026,4031,4035],{"type":53,"tag":125,"props":3950,"children":3951},{"style":504},[3952],{"type":59,"value":3953},"    resourceBody",{"type":53,"tag":125,"props":3955,"children":3956},{"style":197},[3957],{"type":59,"value":512},{"type":53,"tag":125,"props":3959,"children":3960},{"style":197},[3961],{"type":59,"value":361},{"type":53,"tag":125,"props":3963,"children":3964},{"style":504},[3965],{"type":59,"value":3966}," id",{"type":53,"tag":125,"props":3968,"children":3969},{"style":197},[3970],{"type":59,"value":512},{"type":53,"tag":125,"props":3972,"children":3973},{"style":197},[3974],{"type":59,"value":381},{"type":53,"tag":125,"props":3976,"children":3977},{"style":138},[3978],{"type":59,"value":3979},"1",{"type":53,"tag":125,"props":3981,"children":3982},{"style":197},[3983],{"type":59,"value":390},{"type":53,"tag":125,"props":3985,"children":3986},{"style":197},[3987],{"type":59,"value":416},{"type":53,"tag":125,"props":3989,"children":3990},{"style":504},[3991],{"type":59,"value":3992}," partitionKey",{"type":53,"tag":125,"props":3994,"children":3995},{"style":197},[3996],{"type":59,"value":512},{"type":53,"tag":125,"props":3998,"children":3999},{"style":197},[4000],{"type":59,"value":381},{"type":53,"tag":125,"props":4002,"children":4003},{"style":138},[4004],{"type":59,"value":4005},"cat-a",{"type":53,"tag":125,"props":4007,"children":4008},{"style":197},[4009],{"type":59,"value":390},{"type":53,"tag":125,"props":4011,"children":4012},{"style":197},[4013],{"type":59,"value":416},{"type":53,"tag":125,"props":4015,"children":4016},{"style":504},[4017],{"type":59,"value":3146},{"type":53,"tag":125,"props":4019,"children":4020},{"style":197},[4021],{"type":59,"value":512},{"type":53,"tag":125,"props":4023,"children":4024},{"style":197},[4025],{"type":59,"value":381},{"type":53,"tag":125,"props":4027,"children":4028},{"style":138},[4029],{"type":59,"value":4030},"Item 1",{"type":53,"tag":125,"props":4032,"children":4033},{"style":197},[4034],{"type":59,"value":390},{"type":53,"tag":125,"props":4036,"children":4037},{"style":197},[4038],{"type":59,"value":2614},{"type":53,"tag":125,"props":4040,"children":4041},{"class":127,"line":559},[4042],{"type":53,"tag":125,"props":4043,"children":4044},{"style":197},[4045],{"type":59,"value":4046},"  },\n",{"type":53,"tag":125,"props":4048,"children":4049},{"class":127,"line":568},[4050],{"type":53,"tag":125,"props":4051,"children":4052},{"style":197},[4053],{"type":59,"value":3916},{"type":53,"tag":125,"props":4055,"children":4056},{"class":127,"line":577},[4057,4061,4065,4069,4073,4078],{"type":53,"tag":125,"props":4058,"children":4059},{"style":504},[4060],{"type":59,"value":3924},{"type":53,"tag":125,"props":4062,"children":4063},{"style":197},[4064],{"type":59,"value":512},{"type":53,"tag":125,"props":4066,"children":4067},{"style":191},[4068],{"type":59,"value":3837},{"type":53,"tag":125,"props":4070,"children":4071},{"style":197},[4072],{"type":59,"value":639},{"type":53,"tag":125,"props":4074,"children":4075},{"style":191},[4076],{"type":59,"value":4077},"Upsert",{"type":53,"tag":125,"props":4079,"children":4080},{"style":197},[4081],{"type":59,"value":680},{"type":53,"tag":125,"props":4083,"children":4084},{"class":127,"line":585},[4085,4089,4093,4097,4101,4105,4109,4114,4118,4122,4126,4130,4134,4138,4142,4146,4150,4154,4158,4163,4167],{"type":53,"tag":125,"props":4086,"children":4087},{"style":504},[4088],{"type":59,"value":3953},{"type":53,"tag":125,"props":4090,"children":4091},{"style":197},[4092],{"type":59,"value":512},{"type":53,"tag":125,"props":4094,"children":4095},{"style":197},[4096],{"type":59,"value":361},{"type":53,"tag":125,"props":4098,"children":4099},{"style":504},[4100],{"type":59,"value":3966},{"type":53,"tag":125,"props":4102,"children":4103},{"style":197},[4104],{"type":59,"value":512},{"type":53,"tag":125,"props":4106,"children":4107},{"style":197},[4108],{"type":59,"value":381},{"type":53,"tag":125,"props":4110,"children":4111},{"style":138},[4112],{"type":59,"value":4113},"2",{"type":53,"tag":125,"props":4115,"children":4116},{"style":197},[4117],{"type":59,"value":390},{"type":53,"tag":125,"props":4119,"children":4120},{"style":197},[4121],{"type":59,"value":416},{"type":53,"tag":125,"props":4123,"children":4124},{"style":504},[4125],{"type":59,"value":3992},{"type":53,"tag":125,"props":4127,"children":4128},{"style":197},[4129],{"type":59,"value":512},{"type":53,"tag":125,"props":4131,"children":4132},{"style":197},[4133],{"type":59,"value":381},{"type":53,"tag":125,"props":4135,"children":4136},{"style":138},[4137],{"type":59,"value":4005},{"type":53,"tag":125,"props":4139,"children":4140},{"style":197},[4141],{"type":59,"value":390},{"type":53,"tag":125,"props":4143,"children":4144},{"style":197},[4145],{"type":59,"value":416},{"type":53,"tag":125,"props":4147,"children":4148},{"style":504},[4149],{"type":59,"value":3146},{"type":53,"tag":125,"props":4151,"children":4152},{"style":197},[4153],{"type":59,"value":512},{"type":53,"tag":125,"props":4155,"children":4156},{"style":197},[4157],{"type":59,"value":381},{"type":53,"tag":125,"props":4159,"children":4160},{"style":138},[4161],{"type":59,"value":4162},"Item 2",{"type":53,"tag":125,"props":4164,"children":4165},{"style":197},[4166],{"type":59,"value":390},{"type":53,"tag":125,"props":4168,"children":4169},{"style":197},[4170],{"type":59,"value":2614},{"type":53,"tag":125,"props":4172,"children":4173},{"class":127,"line":619},[4174],{"type":53,"tag":125,"props":4175,"children":4176},{"style":197},[4177],{"type":59,"value":4046},{"type":53,"tag":125,"props":4179,"children":4180},{"class":127,"line":660},[4181],{"type":53,"tag":125,"props":4182,"children":4183},{"style":197},[4184],{"type":59,"value":3916},{"type":53,"tag":125,"props":4186,"children":4187},{"class":127,"line":683},[4188,4192,4196,4200,4204,4209],{"type":53,"tag":125,"props":4189,"children":4190},{"style":504},[4191],{"type":59,"value":3924},{"type":53,"tag":125,"props":4193,"children":4194},{"style":197},[4195],{"type":59,"value":512},{"type":53,"tag":125,"props":4197,"children":4198},{"style":191},[4199],{"type":59,"value":3837},{"type":53,"tag":125,"props":4201,"children":4202},{"style":197},[4203],{"type":59,"value":639},{"type":53,"tag":125,"props":4205,"children":4206},{"style":191},[4207],{"type":59,"value":4208},"Read",{"type":53,"tag":125,"props":4210,"children":4211},{"style":197},[4212],{"type":59,"value":680},{"type":53,"tag":125,"props":4214,"children":4215},{"class":127,"line":1523},[4216,4221,4225,4229,4234,4238],{"type":53,"tag":125,"props":4217,"children":4218},{"style":504},[4219],{"type":59,"value":4220},"    id",{"type":53,"tag":125,"props":4222,"children":4223},{"style":197},[4224],{"type":59,"value":512},{"type":53,"tag":125,"props":4226,"children":4227},{"style":197},[4228],{"type":59,"value":381},{"type":53,"tag":125,"props":4230,"children":4231},{"style":138},[4232],{"type":59,"value":4233},"3",{"type":53,"tag":125,"props":4235,"children":4236},{"style":197},[4237],{"type":59,"value":390},{"type":53,"tag":125,"props":4239,"children":4240},{"style":197},[4241],{"type":59,"value":680},{"type":53,"tag":125,"props":4243,"children":4244},{"class":127,"line":1531},[4245,4250,4254,4258,4263,4267],{"type":53,"tag":125,"props":4246,"children":4247},{"style":504},[4248],{"type":59,"value":4249},"    partitionKey",{"type":53,"tag":125,"props":4251,"children":4252},{"style":197},[4253],{"type":59,"value":512},{"type":53,"tag":125,"props":4255,"children":4256},{"style":197},[4257],{"type":59,"value":381},{"type":53,"tag":125,"props":4259,"children":4260},{"style":138},[4261],{"type":59,"value":4262},"cat-b",{"type":53,"tag":125,"props":4264,"children":4265},{"style":197},[4266],{"type":59,"value":390},{"type":53,"tag":125,"props":4268,"children":4269},{"style":197},[4270],{"type":59,"value":680},{"type":53,"tag":125,"props":4272,"children":4274},{"class":127,"line":4273},16,[4275],{"type":53,"tag":125,"props":4276,"children":4277},{"style":197},[4278],{"type":59,"value":4046},{"type":53,"tag":125,"props":4280,"children":4282},{"class":127,"line":4281},17,[4283],{"type":53,"tag":125,"props":4284,"children":4285},{"style":197},[4286],{"type":59,"value":3916},{"type":53,"tag":125,"props":4288,"children":4290},{"class":127,"line":4289},18,[4291,4295,4299,4303,4307,4312],{"type":53,"tag":125,"props":4292,"children":4293},{"style":504},[4294],{"type":59,"value":3924},{"type":53,"tag":125,"props":4296,"children":4297},{"style":197},[4298],{"type":59,"value":512},{"type":53,"tag":125,"props":4300,"children":4301},{"style":191},[4302],{"type":59,"value":3837},{"type":53,"tag":125,"props":4304,"children":4305},{"style":197},[4306],{"type":59,"value":639},{"type":53,"tag":125,"props":4308,"children":4309},{"style":191},[4310],{"type":59,"value":4311},"Replace",{"type":53,"tag":125,"props":4313,"children":4314},{"style":197},[4315],{"type":59,"value":680},{"type":53,"tag":125,"props":4317,"children":4319},{"class":127,"line":4318},19,[4320,4324,4328,4332,4337,4341],{"type":53,"tag":125,"props":4321,"children":4322},{"style":504},[4323],{"type":59,"value":4220},{"type":53,"tag":125,"props":4325,"children":4326},{"style":197},[4327],{"type":59,"value":512},{"type":53,"tag":125,"props":4329,"children":4330},{"style":197},[4331],{"type":59,"value":381},{"type":53,"tag":125,"props":4333,"children":4334},{"style":138},[4335],{"type":59,"value":4336},"4",{"type":53,"tag":125,"props":4338,"children":4339},{"style":197},[4340],{"type":59,"value":390},{"type":53,"tag":125,"props":4342,"children":4343},{"style":197},[4344],{"type":59,"value":680},{"type":53,"tag":125,"props":4346,"children":4348},{"class":127,"line":4347},20,[4349,4353,4357,4361,4365,4369],{"type":53,"tag":125,"props":4350,"children":4351},{"style":504},[4352],{"type":59,"value":4249},{"type":53,"tag":125,"props":4354,"children":4355},{"style":197},[4356],{"type":59,"value":512},{"type":53,"tag":125,"props":4358,"children":4359},{"style":197},[4360],{"type":59,"value":381},{"type":53,"tag":125,"props":4362,"children":4363},{"style":138},[4364],{"type":59,"value":4262},{"type":53,"tag":125,"props":4366,"children":4367},{"style":197},[4368],{"type":59,"value":390},{"type":53,"tag":125,"props":4370,"children":4371},{"style":197},[4372],{"type":59,"value":680},{"type":53,"tag":125,"props":4374,"children":4376},{"class":127,"line":4375},21,[4377,4381,4385,4389,4393,4397,4401,4405,4409,4413,4417,4421,4425,4429,4433,4437,4441,4445,4449,4454,4458],{"type":53,"tag":125,"props":4378,"children":4379},{"style":504},[4380],{"type":59,"value":3953},{"type":53,"tag":125,"props":4382,"children":4383},{"style":197},[4384],{"type":59,"value":512},{"type":53,"tag":125,"props":4386,"children":4387},{"style":197},[4388],{"type":59,"value":361},{"type":53,"tag":125,"props":4390,"children":4391},{"style":504},[4392],{"type":59,"value":3966},{"type":53,"tag":125,"props":4394,"children":4395},{"style":197},[4396],{"type":59,"value":512},{"type":53,"tag":125,"props":4398,"children":4399},{"style":197},[4400],{"type":59,"value":381},{"type":53,"tag":125,"props":4402,"children":4403},{"style":138},[4404],{"type":59,"value":4336},{"type":53,"tag":125,"props":4406,"children":4407},{"style":197},[4408],{"type":59,"value":390},{"type":53,"tag":125,"props":4410,"children":4411},{"style":197},[4412],{"type":59,"value":416},{"type":53,"tag":125,"props":4414,"children":4415},{"style":504},[4416],{"type":59,"value":3992},{"type":53,"tag":125,"props":4418,"children":4419},{"style":197},[4420],{"type":59,"value":512},{"type":53,"tag":125,"props":4422,"children":4423},{"style":197},[4424],{"type":59,"value":381},{"type":53,"tag":125,"props":4426,"children":4427},{"style":138},[4428],{"type":59,"value":4262},{"type":53,"tag":125,"props":4430,"children":4431},{"style":197},[4432],{"type":59,"value":390},{"type":53,"tag":125,"props":4434,"children":4435},{"style":197},[4436],{"type":59,"value":416},{"type":53,"tag":125,"props":4438,"children":4439},{"style":504},[4440],{"type":59,"value":3146},{"type":53,"tag":125,"props":4442,"children":4443},{"style":197},[4444],{"type":59,"value":512},{"type":53,"tag":125,"props":4446,"children":4447},{"style":197},[4448],{"type":59,"value":381},{"type":53,"tag":125,"props":4450,"children":4451},{"style":138},[4452],{"type":59,"value":4453},"Updated",{"type":53,"tag":125,"props":4455,"children":4456},{"style":197},[4457],{"type":59,"value":390},{"type":53,"tag":125,"props":4459,"children":4460},{"style":197},[4461],{"type":59,"value":2614},{"type":53,"tag":125,"props":4463,"children":4465},{"class":127,"line":4464},22,[4466],{"type":53,"tag":125,"props":4467,"children":4468},{"style":197},[4469],{"type":59,"value":4046},{"type":53,"tag":125,"props":4471,"children":4473},{"class":127,"line":4472},23,[4474],{"type":53,"tag":125,"props":4475,"children":4476},{"style":197},[4477],{"type":59,"value":3916},{"type":53,"tag":125,"props":4479,"children":4481},{"class":127,"line":4480},24,[4482,4486,4490,4494,4498,4503],{"type":53,"tag":125,"props":4483,"children":4484},{"style":504},[4485],{"type":59,"value":3924},{"type":53,"tag":125,"props":4487,"children":4488},{"style":197},[4489],{"type":59,"value":512},{"type":53,"tag":125,"props":4491,"children":4492},{"style":191},[4493],{"type":59,"value":3837},{"type":53,"tag":125,"props":4495,"children":4496},{"style":197},[4497],{"type":59,"value":639},{"type":53,"tag":125,"props":4499,"children":4500},{"style":191},[4501],{"type":59,"value":4502},"Delete",{"type":53,"tag":125,"props":4504,"children":4505},{"style":197},[4506],{"type":59,"value":680},{"type":53,"tag":125,"props":4508,"children":4510},{"class":127,"line":4509},25,[4511,4515,4519,4523,4528,4532],{"type":53,"tag":125,"props":4512,"children":4513},{"style":504},[4514],{"type":59,"value":4220},{"type":53,"tag":125,"props":4516,"children":4517},{"style":197},[4518],{"type":59,"value":512},{"type":53,"tag":125,"props":4520,"children":4521},{"style":197},[4522],{"type":59,"value":381},{"type":53,"tag":125,"props":4524,"children":4525},{"style":138},[4526],{"type":59,"value":4527},"5",{"type":53,"tag":125,"props":4529,"children":4530},{"style":197},[4531],{"type":59,"value":390},{"type":53,"tag":125,"props":4533,"children":4534},{"style":197},[4535],{"type":59,"value":680},{"type":53,"tag":125,"props":4537,"children":4539},{"class":127,"line":4538},26,[4540,4544,4548,4552,4557,4561],{"type":53,"tag":125,"props":4541,"children":4542},{"style":504},[4543],{"type":59,"value":4249},{"type":53,"tag":125,"props":4545,"children":4546},{"style":197},[4547],{"type":59,"value":512},{"type":53,"tag":125,"props":4549,"children":4550},{"style":197},[4551],{"type":59,"value":381},{"type":53,"tag":125,"props":4553,"children":4554},{"style":138},[4555],{"type":59,"value":4556},"cat-c",{"type":53,"tag":125,"props":4558,"children":4559},{"style":197},[4560],{"type":59,"value":390},{"type":53,"tag":125,"props":4562,"children":4563},{"style":197},[4564],{"type":59,"value":680},{"type":53,"tag":125,"props":4566,"children":4568},{"class":127,"line":4567},27,[4569],{"type":53,"tag":125,"props":4570,"children":4571},{"style":197},[4572],{"type":59,"value":4046},{"type":53,"tag":125,"props":4574,"children":4576},{"class":127,"line":4575},28,[4577],{"type":53,"tag":125,"props":4578,"children":4579},{"style":197},[4580],{"type":59,"value":3916},{"type":53,"tag":125,"props":4582,"children":4584},{"class":127,"line":4583},29,[4585,4589,4593,4597,4601,4606],{"type":53,"tag":125,"props":4586,"children":4587},{"style":504},[4588],{"type":59,"value":3924},{"type":53,"tag":125,"props":4590,"children":4591},{"style":197},[4592],{"type":59,"value":512},{"type":53,"tag":125,"props":4594,"children":4595},{"style":191},[4596],{"type":59,"value":3837},{"type":53,"tag":125,"props":4598,"children":4599},{"style":197},[4600],{"type":59,"value":639},{"type":53,"tag":125,"props":4602,"children":4603},{"style":191},[4604],{"type":59,"value":4605},"Patch",{"type":53,"tag":125,"props":4607,"children":4608},{"style":197},[4609],{"type":59,"value":680},{"type":53,"tag":125,"props":4611,"children":4613},{"class":127,"line":4612},30,[4614,4618,4622,4626,4631,4635],{"type":53,"tag":125,"props":4615,"children":4616},{"style":504},[4617],{"type":59,"value":4220},{"type":53,"tag":125,"props":4619,"children":4620},{"style":197},[4621],{"type":59,"value":512},{"type":53,"tag":125,"props":4623,"children":4624},{"style":197},[4625],{"type":59,"value":381},{"type":53,"tag":125,"props":4627,"children":4628},{"style":138},[4629],{"type":59,"value":4630},"6",{"type":53,"tag":125,"props":4632,"children":4633},{"style":197},[4634],{"type":59,"value":390},{"type":53,"tag":125,"props":4636,"children":4637},{"style":197},[4638],{"type":59,"value":680},{"type":53,"tag":125,"props":4640,"children":4642},{"class":127,"line":4641},31,[4643,4647,4651,4655,4659,4663],{"type":53,"tag":125,"props":4644,"children":4645},{"style":504},[4646],{"type":59,"value":4249},{"type":53,"tag":125,"props":4648,"children":4649},{"style":197},[4650],{"type":59,"value":512},{"type":53,"tag":125,"props":4652,"children":4653},{"style":197},[4654],{"type":59,"value":381},{"type":53,"tag":125,"props":4656,"children":4657},{"style":138},[4658],{"type":59,"value":4556},{"type":53,"tag":125,"props":4660,"children":4661},{"style":197},[4662],{"type":59,"value":390},{"type":53,"tag":125,"props":4664,"children":4665},{"style":197},[4666],{"type":59,"value":680},{"type":53,"tag":125,"props":4668,"children":4670},{"class":127,"line":4669},32,[4671,4675,4679],{"type":53,"tag":125,"props":4672,"children":4673},{"style":504},[4674],{"type":59,"value":3953},{"type":53,"tag":125,"props":4676,"children":4677},{"style":197},[4678],{"type":59,"value":512},{"type":53,"tag":125,"props":4680,"children":4681},{"style":197},[4682],{"type":59,"value":1284},{"type":53,"tag":125,"props":4684,"children":4686},{"class":127,"line":4685},33,[4687,4692,4696,4700,4704,4708,4712,4716,4720,4724,4728,4732,4736,4740,4745,4749,4753,4757,4761,4765,4770,4774,4778,4782],{"type":53,"tag":125,"props":4688,"children":4689},{"style":504},[4690],{"type":59,"value":4691},"      operations",{"type":53,"tag":125,"props":4693,"children":4694},{"style":197},[4695],{"type":59,"value":512},{"type":53,"tag":125,"props":4697,"children":4698},{"style":191},[4699],{"type":59,"value":517},{"type":53,"tag":125,"props":4701,"children":4702},{"style":197},[4703],{"type":59,"value":501},{"type":53,"tag":125,"props":4705,"children":4706},{"style":504},[4707],{"type":59,"value":2549},{"type":53,"tag":125,"props":4709,"children":4710},{"style":197},[4711],{"type":59,"value":512},{"type":53,"tag":125,"props":4713,"children":4714},{"style":197},[4715],{"type":59,"value":381},{"type":53,"tag":125,"props":4717,"children":4718},{"style":138},[4719],{"type":59,"value":2096},{"type":53,"tag":125,"props":4721,"children":4722},{"style":197},[4723],{"type":59,"value":390},{"type":53,"tag":125,"props":4725,"children":4726},{"style":197},[4727],{"type":59,"value":416},{"type":53,"tag":125,"props":4729,"children":4730},{"style":504},[4731],{"type":59,"value":2574},{"type":53,"tag":125,"props":4733,"children":4734},{"style":197},[4735],{"type":59,"value":512},{"type":53,"tag":125,"props":4737,"children":4738},{"style":197},[4739],{"type":59,"value":381},{"type":53,"tag":125,"props":4741,"children":4742},{"style":138},[4743],{"type":59,"value":4744},"\u002Fname",{"type":53,"tag":125,"props":4746,"children":4747},{"style":197},[4748],{"type":59,"value":390},{"type":53,"tag":125,"props":4750,"children":4751},{"style":197},[4752],{"type":59,"value":416},{"type":53,"tag":125,"props":4754,"children":4755},{"style":504},[4756],{"type":59,"value":2600},{"type":53,"tag":125,"props":4758,"children":4759},{"style":197},[4760],{"type":59,"value":512},{"type":53,"tag":125,"props":4762,"children":4763},{"style":197},[4764],{"type":59,"value":381},{"type":53,"tag":125,"props":4766,"children":4767},{"style":138},[4768],{"type":59,"value":4769},"Patched",{"type":53,"tag":125,"props":4771,"children":4772},{"style":197},[4773],{"type":59,"value":390},{"type":53,"tag":125,"props":4775,"children":4776},{"style":197},[4777],{"type":59,"value":371},{"type":53,"tag":125,"props":4779,"children":4780},{"style":191},[4781],{"type":59,"value":534},{"type":53,"tag":125,"props":4783,"children":4784},{"style":197},[4785],{"type":59,"value":680},{"type":53,"tag":125,"props":4787,"children":4789},{"class":127,"line":4788},34,[4790],{"type":53,"tag":125,"props":4791,"children":4792},{"style":197},[4793],{"type":59,"value":4794},"    },\n",{"type":53,"tag":125,"props":4796,"children":4798},{"class":127,"line":4797},35,[4799],{"type":53,"tag":125,"props":4800,"children":4801},{"style":197},[4802],{"type":59,"value":4046},{"type":53,"tag":125,"props":4804,"children":4806},{"class":127,"line":4805},36,[4807,4811],{"type":53,"tag":125,"props":4808,"children":4809},{"style":191},[4810],{"type":59,"value":534},{"type":53,"tag":125,"props":4812,"children":4813},{"style":197},[4814],{"type":59,"value":395},{"type":53,"tag":125,"props":4816,"children":4818},{"class":127,"line":4817},37,[4819],{"type":53,"tag":125,"props":4820,"children":4821},{"emptyLinePlaceholder":452},[4822],{"type":59,"value":455},{"type":53,"tag":125,"props":4824,"children":4826},{"class":127,"line":4825},38,[4827,4831,4836,4840,4844,4848,4852,4856,4860,4865,4869],{"type":53,"tag":125,"props":4828,"children":4829},{"style":469},[4830],{"type":59,"value":472},{"type":53,"tag":125,"props":4832,"children":4833},{"style":191},[4834],{"type":59,"value":4835}," response ",{"type":53,"tag":125,"props":4837,"children":4838},{"style":197},[4839],{"type":59,"value":200},{"type":53,"tag":125,"props":4841,"children":4842},{"style":353},[4843],{"type":59,"value":1018},{"type":53,"tag":125,"props":4845,"children":4846},{"style":191},[4847],{"type":59,"value":1562},{"type":53,"tag":125,"props":4849,"children":4850},{"style":197},[4851],{"type":59,"value":639},{"type":53,"tag":125,"props":4853,"children":4854},{"style":191},[4855],{"type":59,"value":1571},{"type":53,"tag":125,"props":4857,"children":4858},{"style":197},[4859],{"type":59,"value":639},{"type":53,"tag":125,"props":4861,"children":4862},{"style":489},[4863],{"type":59,"value":4864},"executeBulkOperations",{"type":53,"tag":125,"props":4866,"children":4867},{"style":191},[4868],{"type":59,"value":2871},{"type":53,"tag":125,"props":4870,"children":4871},{"style":197},[4872],{"type":59,"value":395},{"type":53,"tag":125,"props":4874,"children":4876},{"class":127,"line":4875},39,[4877],{"type":53,"tag":125,"props":4878,"children":4879},{"emptyLinePlaceholder":452},[4880],{"type":59,"value":455},{"type":53,"tag":125,"props":4882,"children":4884},{"class":127,"line":4883},40,[4885,4890,4894,4899,4903,4907,4913,4917,4922,4926,4931],{"type":53,"tag":125,"props":4886,"children":4887},{"style":191},[4888],{"type":59,"value":4889},"response",{"type":53,"tag":125,"props":4891,"children":4892},{"style":197},[4893],{"type":59,"value":639},{"type":53,"tag":125,"props":4895,"children":4896},{"style":489},[4897],{"type":59,"value":4898},"forEach",{"type":53,"tag":125,"props":4900,"children":4901},{"style":191},[4902],{"type":59,"value":496},{"type":53,"tag":125,"props":4904,"children":4905},{"style":197},[4906],{"type":59,"value":496},{"type":53,"tag":125,"props":4908,"children":4910},{"style":4909},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[4911],{"type":59,"value":4912},"result",{"type":53,"tag":125,"props":4914,"children":4915},{"style":197},[4916],{"type":59,"value":416},{"type":53,"tag":125,"props":4918,"children":4919},{"style":4909},[4920],{"type":59,"value":4921}," index",{"type":53,"tag":125,"props":4923,"children":4924},{"style":197},[4925],{"type":59,"value":544},{"type":53,"tag":125,"props":4927,"children":4928},{"style":469},[4929],{"type":59,"value":4930}," =>",{"type":53,"tag":125,"props":4932,"children":4933},{"style":197},[4934],{"type":59,"value":1284},{"type":53,"tag":125,"props":4936,"children":4938},{"class":127,"line":4937},41,[4939,4944,4949,4953,4957,4962,4967,4972,4977,4982,4986,4990,4995,5000,5004],{"type":53,"tag":125,"props":4940,"children":4941},{"style":353},[4942],{"type":59,"value":4943},"  if",{"type":53,"tag":125,"props":4945,"children":4946},{"style":504},[4947],{"type":59,"value":4948}," (",{"type":53,"tag":125,"props":4950,"children":4951},{"style":191},[4952],{"type":59,"value":4912},{"type":53,"tag":125,"props":4954,"children":4955},{"style":197},[4956],{"type":59,"value":639},{"type":53,"tag":125,"props":4958,"children":4959},{"style":191},[4960],{"type":59,"value":4961},"statusCode",{"type":53,"tag":125,"props":4963,"children":4964},{"style":197},[4965],{"type":59,"value":4966}," >=",{"type":53,"tag":125,"props":4968,"children":4969},{"style":1505},[4970],{"type":59,"value":4971}," 200",{"type":53,"tag":125,"props":4973,"children":4974},{"style":197},[4975],{"type":59,"value":4976}," &&",{"type":53,"tag":125,"props":4978,"children":4979},{"style":191},[4980],{"type":59,"value":4981}," result",{"type":53,"tag":125,"props":4983,"children":4984},{"style":197},[4985],{"type":59,"value":639},{"type":53,"tag":125,"props":4987,"children":4988},{"style":191},[4989],{"type":59,"value":4961},{"type":53,"tag":125,"props":4991,"children":4992},{"style":197},[4993],{"type":59,"value":4994}," \u003C",{"type":53,"tag":125,"props":4996,"children":4997},{"style":1505},[4998],{"type":59,"value":4999}," 300",{"type":53,"tag":125,"props":5001,"children":5002},{"style":504},[5003],{"type":59,"value":1697},{"type":53,"tag":125,"props":5005,"children":5006},{"style":197},[5007],{"type":59,"value":616},{"type":53,"tag":125,"props":5009,"children":5011},{"class":127,"line":5010},42,[5012,5017,5021,5025,5029,5033,5038,5042,5047,5051,5056,5060,5064],{"type":53,"tag":125,"props":5013,"children":5014},{"style":191},[5015],{"type":59,"value":5016},"    console",{"type":53,"tag":125,"props":5018,"children":5019},{"style":197},[5020],{"type":59,"value":639},{"type":53,"tag":125,"props":5022,"children":5023},{"style":489},[5024],{"type":59,"value":1776},{"type":53,"tag":125,"props":5026,"children":5027},{"style":504},[5028],{"type":59,"value":496},{"type":53,"tag":125,"props":5030,"children":5031},{"style":197},[5032],{"type":59,"value":3588},{"type":53,"tag":125,"props":5034,"children":5035},{"style":138},[5036],{"type":59,"value":5037},"Operation ",{"type":53,"tag":125,"props":5039,"children":5040},{"style":197},[5041],{"type":59,"value":3598},{"type":53,"tag":125,"props":5043,"children":5044},{"style":191},[5045],{"type":59,"value":5046},"index",{"type":53,"tag":125,"props":5048,"children":5049},{"style":197},[5050],{"type":59,"value":539},{"type":53,"tag":125,"props":5052,"children":5053},{"style":138},[5054],{"type":59,"value":5055}," succeeded",{"type":53,"tag":125,"props":5057,"children":5058},{"style":197},[5059],{"type":59,"value":3588},{"type":53,"tag":125,"props":5061,"children":5062},{"style":504},[5063],{"type":59,"value":544},{"type":53,"tag":125,"props":5065,"children":5066},{"style":197},[5067],{"type":59,"value":395},{"type":53,"tag":125,"props":5069,"children":5071},{"class":127,"line":5070},43,[5072,5077,5082],{"type":53,"tag":125,"props":5073,"children":5074},{"style":197},[5075],{"type":59,"value":5076},"  }",{"type":53,"tag":125,"props":5078,"children":5079},{"style":353},[5080],{"type":59,"value":5081}," else",{"type":53,"tag":125,"props":5083,"children":5084},{"style":197},[5085],{"type":59,"value":1284},{"type":53,"tag":125,"props":5087,"children":5089},{"class":127,"line":5088},44,[5090,5094,5098,5103,5107,5111,5115,5119,5123,5127,5132,5136,5140,5144,5148,5153,5157],{"type":53,"tag":125,"props":5091,"children":5092},{"style":191},[5093],{"type":59,"value":5016},{"type":53,"tag":125,"props":5095,"children":5096},{"style":197},[5097],{"type":59,"value":639},{"type":53,"tag":125,"props":5099,"children":5100},{"style":489},[5101],{"type":59,"value":5102},"error",{"type":53,"tag":125,"props":5104,"children":5105},{"style":504},[5106],{"type":59,"value":496},{"type":53,"tag":125,"props":5108,"children":5109},{"style":197},[5110],{"type":59,"value":3588},{"type":53,"tag":125,"props":5112,"children":5113},{"style":138},[5114],{"type":59,"value":5037},{"type":53,"tag":125,"props":5116,"children":5117},{"style":197},[5118],{"type":59,"value":3598},{"type":53,"tag":125,"props":5120,"children":5121},{"style":191},[5122],{"type":59,"value":5046},{"type":53,"tag":125,"props":5124,"children":5125},{"style":197},[5126],{"type":59,"value":539},{"type":53,"tag":125,"props":5128,"children":5129},{"style":138},[5130],{"type":59,"value":5131}," failed: ",{"type":53,"tag":125,"props":5133,"children":5134},{"style":197},[5135],{"type":59,"value":3598},{"type":53,"tag":125,"props":5137,"children":5138},{"style":191},[5139],{"type":59,"value":4912},{"type":53,"tag":125,"props":5141,"children":5142},{"style":197},[5143],{"type":59,"value":639},{"type":53,"tag":125,"props":5145,"children":5146},{"style":191},[5147],{"type":59,"value":4961},{"type":53,"tag":125,"props":5149,"children":5150},{"style":197},[5151],{"type":59,"value":5152},"}`",{"type":53,"tag":125,"props":5154,"children":5155},{"style":504},[5156],{"type":59,"value":544},{"type":53,"tag":125,"props":5158,"children":5159},{"style":197},[5160],{"type":59,"value":395},{"type":53,"tag":125,"props":5162,"children":5164},{"class":127,"line":5163},45,[5165],{"type":53,"tag":125,"props":5166,"children":5167},{"style":197},[5168],{"type":59,"value":5169},"  }\n",{"type":53,"tag":125,"props":5171,"children":5173},{"class":127,"line":5172},46,[5174,5178,5182],{"type":53,"tag":125,"props":5175,"children":5176},{"style":197},[5177],{"type":59,"value":539},{"type":53,"tag":125,"props":5179,"children":5180},{"style":191},[5181],{"type":59,"value":544},{"type":53,"tag":125,"props":5183,"children":5184},{"style":197},[5185],{"type":59,"value":395},{"type":53,"tag":106,"props":5187,"children":5189},{"id":5188},"partition-keys",[5190],{"type":59,"value":5191},"Partition Keys",{"type":53,"tag":334,"props":5193,"children":5195},{"id":5194},"simple-partition-key",[5196],{"type":59,"value":5197},"Simple Partition Key",{"type":53,"tag":113,"props":5199,"children":5201},{"className":342,"code":5200,"language":18,"meta":118,"style":118},"const { container } = await database.containers.createIfNotExists({\n  id: \"products\",\n  partitionKey: { paths: [\"\u002Fcategory\"] },\n});\n",[5202],{"type":53,"tag":121,"props":5203,"children":5204},{"__ignoreMap":118},[5205,5260,5288,5336],{"type":53,"tag":125,"props":5206,"children":5207},{"class":127,"line":128},[5208,5212,5216,5220,5224,5228,5232,5236,5240,5244,5248,5252,5256],{"type":53,"tag":125,"props":5209,"children":5210},{"style":469},[5211],{"type":59,"value":472},{"type":53,"tag":125,"props":5213,"children":5214},{"style":197},[5215],{"type":59,"value":361},{"type":53,"tag":125,"props":5217,"children":5218},{"style":191},[5219],{"type":59,"value":1116},{"type":53,"tag":125,"props":5221,"children":5222},{"style":197},[5223],{"type":59,"value":539},{"type":53,"tag":125,"props":5225,"children":5226},{"style":197},[5227],{"type":59,"value":1013},{"type":53,"tag":125,"props":5229,"children":5230},{"style":353},[5231],{"type":59,"value":1018},{"type":53,"tag":125,"props":5233,"children":5234},{"style":191},[5235],{"type":59,"value":1133},{"type":53,"tag":125,"props":5237,"children":5238},{"style":197},[5239],{"type":59,"value":639},{"type":53,"tag":125,"props":5241,"children":5242},{"style":191},[5243],{"type":59,"value":1142},{"type":53,"tag":125,"props":5245,"children":5246},{"style":197},[5247],{"type":59,"value":639},{"type":53,"tag":125,"props":5249,"children":5250},{"style":489},[5251],{"type":59,"value":1041},{"type":53,"tag":125,"props":5253,"children":5254},{"style":191},[5255],{"type":59,"value":496},{"type":53,"tag":125,"props":5257,"children":5258},{"style":197},[5259],{"type":59,"value":616},{"type":53,"tag":125,"props":5261,"children":5262},{"class":127,"line":228},[5263,5267,5271,5275,5280,5284],{"type":53,"tag":125,"props":5264,"children":5265},{"style":504},[5266],{"type":59,"value":1057},{"type":53,"tag":125,"props":5268,"children":5269},{"style":197},[5270],{"type":59,"value":512},{"type":53,"tag":125,"props":5272,"children":5273},{"style":197},[5274],{"type":59,"value":381},{"type":53,"tag":125,"props":5276,"children":5277},{"style":138},[5278],{"type":59,"value":5279},"products",{"type":53,"tag":125,"props":5281,"children":5282},{"style":197},[5283],{"type":59,"value":390},{"type":53,"tag":125,"props":5285,"children":5286},{"style":197},[5287],{"type":59,"value":680},{"type":53,"tag":125,"props":5289,"children":5290},{"class":127,"line":252},[5291,5295,5299,5303,5307,5311,5315,5319,5324,5328,5332],{"type":53,"tag":125,"props":5292,"children":5293},{"style":504},[5294],{"type":59,"value":1194},{"type":53,"tag":125,"props":5296,"children":5297},{"style":197},[5298],{"type":59,"value":512},{"type":53,"tag":125,"props":5300,"children":5301},{"style":197},[5302],{"type":59,"value":361},{"type":53,"tag":125,"props":5304,"children":5305},{"style":504},[5306],{"type":59,"value":1207},{"type":53,"tag":125,"props":5308,"children":5309},{"style":197},[5310],{"type":59,"value":512},{"type":53,"tag":125,"props":5312,"children":5313},{"style":191},[5314],{"type":59,"value":517},{"type":53,"tag":125,"props":5316,"children":5317},{"style":197},[5318],{"type":59,"value":390},{"type":53,"tag":125,"props":5320,"children":5321},{"style":138},[5322],{"type":59,"value":5323},"\u002Fcategory",{"type":53,"tag":125,"props":5325,"children":5326},{"style":197},[5327],{"type":59,"value":390},{"type":53,"tag":125,"props":5329,"children":5330},{"style":191},[5331],{"type":59,"value":1233},{"type":53,"tag":125,"props":5333,"children":5334},{"style":197},[5335],{"type":59,"value":1238},{"type":53,"tag":125,"props":5337,"children":5338},{"class":127,"line":274},[5339,5343,5347],{"type":53,"tag":125,"props":5340,"children":5341},{"style":197},[5342],{"type":59,"value":539},{"type":53,"tag":125,"props":5344,"children":5345},{"style":191},[5346],{"type":59,"value":544},{"type":53,"tag":125,"props":5348,"children":5349},{"style":197},[5350],{"type":59,"value":395},{"type":53,"tag":334,"props":5352,"children":5354},{"id":5353},"hierarchical-partition-key-multihash",[5355],{"type":59,"value":5356},"Hierarchical Partition Key (MultiHash)",{"type":53,"tag":113,"props":5358,"children":5360},{"className":342,"code":5359,"language":18,"meta":118,"style":118},"import { PartitionKeyDefinitionVersion, PartitionKeyKind } from \"@azure\u002Fcosmos\";\n\nconst { container } = await database.containers.createIfNotExists({\n  id: \"orders\",\n  partitionKey: {\n    paths: [\"\u002FtenantId\", \"\u002FuserId\", \"\u002FsessionId\"],\n    version: PartitionKeyDefinitionVersion.V2,\n    kind: PartitionKeyKind.MultiHash,\n  },\n});\n\n\u002F\u002F Operations require array of partition key values\nconst { resource } = await container.items.create({\n  id: \"order-1\",\n  tenantId: \"tenant-a\",\n  userId: \"user-123\",\n  sessionId: \"session-xyz\",\n  total: 99.99,\n});\n\n\u002F\u002F Read with hierarchical partition key\nconst { resource: order } = await container\n  .item(\"order-1\", [\"tenant-a\", \"user-123\", \"session-xyz\"])\n  .read();\n",[5361],{"type":53,"tag":121,"props":5362,"children":5363},{"__ignoreMap":118},[5364,5413,5420,5475,5503,5518,5589,5618,5647,5654,5669,5676,5684,5739,5767,5796,5825,5854,5875,5890,5897,5905,5945,6029],{"type":53,"tag":125,"props":5365,"children":5366},{"class":127,"line":128},[5367,5371,5375,5380,5384,5389,5393,5397,5401,5405,5409],{"type":53,"tag":125,"props":5368,"children":5369},{"style":353},[5370],{"type":59,"value":356},{"type":53,"tag":125,"props":5372,"children":5373},{"style":197},[5374],{"type":59,"value":361},{"type":53,"tag":125,"props":5376,"children":5377},{"style":191},[5378],{"type":59,"value":5379}," PartitionKeyDefinitionVersion",{"type":53,"tag":125,"props":5381,"children":5382},{"style":197},[5383],{"type":59,"value":416},{"type":53,"tag":125,"props":5385,"children":5386},{"style":191},[5387],{"type":59,"value":5388}," PartitionKeyKind",{"type":53,"tag":125,"props":5390,"children":5391},{"style":197},[5392],{"type":59,"value":371},{"type":53,"tag":125,"props":5394,"children":5395},{"style":353},[5396],{"type":59,"value":376},{"type":53,"tag":125,"props":5398,"children":5399},{"style":197},[5400],{"type":59,"value":381},{"type":53,"tag":125,"props":5402,"children":5403},{"style":138},[5404],{"type":59,"value":48},{"type":53,"tag":125,"props":5406,"children":5407},{"style":197},[5408],{"type":59,"value":390},{"type":53,"tag":125,"props":5410,"children":5411},{"style":197},[5412],{"type":59,"value":395},{"type":53,"tag":125,"props":5414,"children":5415},{"class":127,"line":228},[5416],{"type":53,"tag":125,"props":5417,"children":5418},{"emptyLinePlaceholder":452},[5419],{"type":59,"value":455},{"type":53,"tag":125,"props":5421,"children":5422},{"class":127,"line":252},[5423,5427,5431,5435,5439,5443,5447,5451,5455,5459,5463,5467,5471],{"type":53,"tag":125,"props":5424,"children":5425},{"style":469},[5426],{"type":59,"value":472},{"type":53,"tag":125,"props":5428,"children":5429},{"style":197},[5430],{"type":59,"value":361},{"type":53,"tag":125,"props":5432,"children":5433},{"style":191},[5434],{"type":59,"value":1116},{"type":53,"tag":125,"props":5436,"children":5437},{"style":197},[5438],{"type":59,"value":539},{"type":53,"tag":125,"props":5440,"children":5441},{"style":197},[5442],{"type":59,"value":1013},{"type":53,"tag":125,"props":5444,"children":5445},{"style":353},[5446],{"type":59,"value":1018},{"type":53,"tag":125,"props":5448,"children":5449},{"style":191},[5450],{"type":59,"value":1133},{"type":53,"tag":125,"props":5452,"children":5453},{"style":197},[5454],{"type":59,"value":639},{"type":53,"tag":125,"props":5456,"children":5457},{"style":191},[5458],{"type":59,"value":1142},{"type":53,"tag":125,"props":5460,"children":5461},{"style":197},[5462],{"type":59,"value":639},{"type":53,"tag":125,"props":5464,"children":5465},{"style":489},[5466],{"type":59,"value":1041},{"type":53,"tag":125,"props":5468,"children":5469},{"style":191},[5470],{"type":59,"value":496},{"type":53,"tag":125,"props":5472,"children":5473},{"style":197},[5474],{"type":59,"value":616},{"type":53,"tag":125,"props":5476,"children":5477},{"class":127,"line":274},[5478,5482,5486,5490,5495,5499],{"type":53,"tag":125,"props":5479,"children":5480},{"style":504},[5481],{"type":59,"value":1057},{"type":53,"tag":125,"props":5483,"children":5484},{"style":197},[5485],{"type":59,"value":512},{"type":53,"tag":125,"props":5487,"children":5488},{"style":197},[5489],{"type":59,"value":381},{"type":53,"tag":125,"props":5491,"children":5492},{"style":138},[5493],{"type":59,"value":5494},"orders",{"type":53,"tag":125,"props":5496,"children":5497},{"style":197},[5498],{"type":59,"value":390},{"type":53,"tag":125,"props":5500,"children":5501},{"style":197},[5502],{"type":59,"value":680},{"type":53,"tag":125,"props":5504,"children":5505},{"class":127,"line":284},[5506,5510,5514],{"type":53,"tag":125,"props":5507,"children":5508},{"style":504},[5509],{"type":59,"value":1194},{"type":53,"tag":125,"props":5511,"children":5512},{"style":197},[5513],{"type":59,"value":512},{"type":53,"tag":125,"props":5515,"children":5516},{"style":197},[5517],{"type":59,"value":1284},{"type":53,"tag":125,"props":5519,"children":5520},{"class":127,"line":306},[5521,5526,5530,5534,5538,5543,5547,5551,5555,5560,5564,5568,5572,5577,5581,5585],{"type":53,"tag":125,"props":5522,"children":5523},{"style":504},[5524],{"type":59,"value":5525},"    paths",{"type":53,"tag":125,"props":5527,"children":5528},{"style":197},[5529],{"type":59,"value":512},{"type":53,"tag":125,"props":5531,"children":5532},{"style":191},[5533],{"type":59,"value":517},{"type":53,"tag":125,"props":5535,"children":5536},{"style":197},[5537],{"type":59,"value":390},{"type":53,"tag":125,"props":5539,"children":5540},{"style":138},[5541],{"type":59,"value":5542},"\u002FtenantId",{"type":53,"tag":125,"props":5544,"children":5545},{"style":197},[5546],{"type":59,"value":390},{"type":53,"tag":125,"props":5548,"children":5549},{"style":197},[5550],{"type":59,"value":416},{"type":53,"tag":125,"props":5552,"children":5553},{"style":197},[5554],{"type":59,"value":381},{"type":53,"tag":125,"props":5556,"children":5557},{"style":138},[5558],{"type":59,"value":5559},"\u002FuserId",{"type":53,"tag":125,"props":5561,"children":5562},{"style":197},[5563],{"type":59,"value":390},{"type":53,"tag":125,"props":5565,"children":5566},{"style":197},[5567],{"type":59,"value":416},{"type":53,"tag":125,"props":5569,"children":5570},{"style":197},[5571],{"type":59,"value":381},{"type":53,"tag":125,"props":5573,"children":5574},{"style":138},[5575],{"type":59,"value":5576},"\u002FsessionId",{"type":53,"tag":125,"props":5578,"children":5579},{"style":197},[5580],{"type":59,"value":390},{"type":53,"tag":125,"props":5582,"children":5583},{"style":191},[5584],{"type":59,"value":534},{"type":53,"tag":125,"props":5586,"children":5587},{"style":197},[5588],{"type":59,"value":680},{"type":53,"tag":125,"props":5590,"children":5591},{"class":127,"line":559},[5592,5597,5601,5605,5609,5614],{"type":53,"tag":125,"props":5593,"children":5594},{"style":504},[5595],{"type":59,"value":5596},"    version",{"type":53,"tag":125,"props":5598,"children":5599},{"style":197},[5600],{"type":59,"value":512},{"type":53,"tag":125,"props":5602,"children":5603},{"style":191},[5604],{"type":59,"value":5379},{"type":53,"tag":125,"props":5606,"children":5607},{"style":197},[5608],{"type":59,"value":639},{"type":53,"tag":125,"props":5610,"children":5611},{"style":191},[5612],{"type":59,"value":5613},"V2",{"type":53,"tag":125,"props":5615,"children":5616},{"style":197},[5617],{"type":59,"value":680},{"type":53,"tag":125,"props":5619,"children":5620},{"class":127,"line":568},[5621,5626,5630,5634,5638,5643],{"type":53,"tag":125,"props":5622,"children":5623},{"style":504},[5624],{"type":59,"value":5625},"    kind",{"type":53,"tag":125,"props":5627,"children":5628},{"style":197},[5629],{"type":59,"value":512},{"type":53,"tag":125,"props":5631,"children":5632},{"style":191},[5633],{"type":59,"value":5388},{"type":53,"tag":125,"props":5635,"children":5636},{"style":197},[5637],{"type":59,"value":639},{"type":53,"tag":125,"props":5639,"children":5640},{"style":191},[5641],{"type":59,"value":5642},"MultiHash",{"type":53,"tag":125,"props":5644,"children":5645},{"style":197},[5646],{"type":59,"value":680},{"type":53,"tag":125,"props":5648,"children":5649},{"class":127,"line":577},[5650],{"type":53,"tag":125,"props":5651,"children":5652},{"style":197},[5653],{"type":59,"value":4046},{"type":53,"tag":125,"props":5655,"children":5656},{"class":127,"line":585},[5657,5661,5665],{"type":53,"tag":125,"props":5658,"children":5659},{"style":197},[5660],{"type":59,"value":539},{"type":53,"tag":125,"props":5662,"children":5663},{"style":191},[5664],{"type":59,"value":544},{"type":53,"tag":125,"props":5666,"children":5667},{"style":197},[5668],{"type":59,"value":395},{"type":53,"tag":125,"props":5670,"children":5671},{"class":127,"line":619},[5672],{"type":53,"tag":125,"props":5673,"children":5674},{"emptyLinePlaceholder":452},[5675],{"type":59,"value":455},{"type":53,"tag":125,"props":5677,"children":5678},{"class":127,"line":660},[5679],{"type":53,"tag":125,"props":5680,"children":5681},{"style":278},[5682],{"type":59,"value":5683},"\u002F\u002F Operations require array of partition key values\n",{"type":53,"tag":125,"props":5685,"children":5686},{"class":127,"line":683},[5687,5691,5695,5699,5703,5707,5711,5715,5719,5723,5727,5731,5735],{"type":53,"tag":125,"props":5688,"children":5689},{"style":469},[5690],{"type":59,"value":472},{"type":53,"tag":125,"props":5692,"children":5693},{"style":197},[5694],{"type":59,"value":361},{"type":53,"tag":125,"props":5696,"children":5697},{"style":191},[5698],{"type":59,"value":1545},{"type":53,"tag":125,"props":5700,"children":5701},{"style":197},[5702],{"type":59,"value":539},{"type":53,"tag":125,"props":5704,"children":5705},{"style":197},[5706],{"type":59,"value":1013},{"type":53,"tag":125,"props":5708,"children":5709},{"style":353},[5710],{"type":59,"value":1018},{"type":53,"tag":125,"props":5712,"children":5713},{"style":191},[5714],{"type":59,"value":1562},{"type":53,"tag":125,"props":5716,"children":5717},{"style":197},[5718],{"type":59,"value":639},{"type":53,"tag":125,"props":5720,"children":5721},{"style":191},[5722],{"type":59,"value":1571},{"type":53,"tag":125,"props":5724,"children":5725},{"style":197},[5726],{"type":59,"value":639},{"type":53,"tag":125,"props":5728,"children":5729},{"style":489},[5730],{"type":59,"value":1580},{"type":53,"tag":125,"props":5732,"children":5733},{"style":191},[5734],{"type":59,"value":496},{"type":53,"tag":125,"props":5736,"children":5737},{"style":197},[5738],{"type":59,"value":616},{"type":53,"tag":125,"props":5740,"children":5741},{"class":127,"line":1523},[5742,5746,5750,5754,5759,5763],{"type":53,"tag":125,"props":5743,"children":5744},{"style":504},[5745],{"type":59,"value":1057},{"type":53,"tag":125,"props":5747,"children":5748},{"style":197},[5749],{"type":59,"value":512},{"type":53,"tag":125,"props":5751,"children":5752},{"style":197},[5753],{"type":59,"value":381},{"type":53,"tag":125,"props":5755,"children":5756},{"style":138},[5757],{"type":59,"value":5758},"order-1",{"type":53,"tag":125,"props":5760,"children":5761},{"style":197},[5762],{"type":59,"value":390},{"type":53,"tag":125,"props":5764,"children":5765},{"style":197},[5766],{"type":59,"value":680},{"type":53,"tag":125,"props":5768,"children":5769},{"class":127,"line":1531},[5770,5775,5779,5783,5788,5792],{"type":53,"tag":125,"props":5771,"children":5772},{"style":504},[5773],{"type":59,"value":5774},"  tenantId",{"type":53,"tag":125,"props":5776,"children":5777},{"style":197},[5778],{"type":59,"value":512},{"type":53,"tag":125,"props":5780,"children":5781},{"style":197},[5782],{"type":59,"value":381},{"type":53,"tag":125,"props":5784,"children":5785},{"style":138},[5786],{"type":59,"value":5787},"tenant-a",{"type":53,"tag":125,"props":5789,"children":5790},{"style":197},[5791],{"type":59,"value":390},{"type":53,"tag":125,"props":5793,"children":5794},{"style":197},[5795],{"type":59,"value":680},{"type":53,"tag":125,"props":5797,"children":5798},{"class":127,"line":4273},[5799,5804,5808,5812,5817,5821],{"type":53,"tag":125,"props":5800,"children":5801},{"style":504},[5802],{"type":59,"value":5803},"  userId",{"type":53,"tag":125,"props":5805,"children":5806},{"style":197},[5807],{"type":59,"value":512},{"type":53,"tag":125,"props":5809,"children":5810},{"style":197},[5811],{"type":59,"value":381},{"type":53,"tag":125,"props":5813,"children":5814},{"style":138},[5815],{"type":59,"value":5816},"user-123",{"type":53,"tag":125,"props":5818,"children":5819},{"style":197},[5820],{"type":59,"value":390},{"type":53,"tag":125,"props":5822,"children":5823},{"style":197},[5824],{"type":59,"value":680},{"type":53,"tag":125,"props":5826,"children":5827},{"class":127,"line":4281},[5828,5833,5837,5841,5846,5850],{"type":53,"tag":125,"props":5829,"children":5830},{"style":504},[5831],{"type":59,"value":5832},"  sessionId",{"type":53,"tag":125,"props":5834,"children":5835},{"style":197},[5836],{"type":59,"value":512},{"type":53,"tag":125,"props":5838,"children":5839},{"style":197},[5840],{"type":59,"value":381},{"type":53,"tag":125,"props":5842,"children":5843},{"style":138},[5844],{"type":59,"value":5845},"session-xyz",{"type":53,"tag":125,"props":5847,"children":5848},{"style":197},[5849],{"type":59,"value":390},{"type":53,"tag":125,"props":5851,"children":5852},{"style":197},[5853],{"type":59,"value":680},{"type":53,"tag":125,"props":5855,"children":5856},{"class":127,"line":4289},[5857,5862,5866,5871],{"type":53,"tag":125,"props":5858,"children":5859},{"style":504},[5860],{"type":59,"value":5861},"  total",{"type":53,"tag":125,"props":5863,"children":5864},{"style":197},[5865],{"type":59,"value":512},{"type":53,"tag":125,"props":5867,"children":5868},{"style":1505},[5869],{"type":59,"value":5870}," 99.99",{"type":53,"tag":125,"props":5872,"children":5873},{"style":197},[5874],{"type":59,"value":680},{"type":53,"tag":125,"props":5876,"children":5877},{"class":127,"line":4318},[5878,5882,5886],{"type":53,"tag":125,"props":5879,"children":5880},{"style":197},[5881],{"type":59,"value":539},{"type":53,"tag":125,"props":5883,"children":5884},{"style":191},[5885],{"type":59,"value":544},{"type":53,"tag":125,"props":5887,"children":5888},{"style":197},[5889],{"type":59,"value":395},{"type":53,"tag":125,"props":5891,"children":5892},{"class":127,"line":4347},[5893],{"type":53,"tag":125,"props":5894,"children":5895},{"emptyLinePlaceholder":452},[5896],{"type":59,"value":455},{"type":53,"tag":125,"props":5898,"children":5899},{"class":127,"line":4375},[5900],{"type":53,"tag":125,"props":5901,"children":5902},{"style":278},[5903],{"type":59,"value":5904},"\u002F\u002F Read with hierarchical partition key\n",{"type":53,"tag":125,"props":5906,"children":5907},{"class":127,"line":4464},[5908,5912,5916,5920,5924,5929,5933,5937,5941],{"type":53,"tag":125,"props":5909,"children":5910},{"style":469},[5911],{"type":59,"value":472},{"type":53,"tag":125,"props":5913,"children":5914},{"style":197},[5915],{"type":59,"value":361},{"type":53,"tag":125,"props":5917,"children":5918},{"style":504},[5919],{"type":59,"value":1838},{"type":53,"tag":125,"props":5921,"children":5922},{"style":197},[5923],{"type":59,"value":512},{"type":53,"tag":125,"props":5925,"children":5926},{"style":191},[5927],{"type":59,"value":5928}," order ",{"type":53,"tag":125,"props":5930,"children":5931},{"style":197},[5932],{"type":59,"value":539},{"type":53,"tag":125,"props":5934,"children":5935},{"style":197},[5936],{"type":59,"value":1013},{"type":53,"tag":125,"props":5938,"children":5939},{"style":353},[5940],{"type":59,"value":1018},{"type":53,"tag":125,"props":5942,"children":5943},{"style":191},[5944],{"type":59,"value":1647},{"type":53,"tag":125,"props":5946,"children":5947},{"class":127,"line":4472},[5948,5952,5956,5960,5964,5968,5972,5976,5980,5984,5988,5992,5996,6000,6004,6008,6012,6016,6020,6024],{"type":53,"tag":125,"props":5949,"children":5950},{"style":197},[5951],{"type":59,"value":1655},{"type":53,"tag":125,"props":5953,"children":5954},{"style":489},[5955],{"type":59,"value":1660},{"type":53,"tag":125,"props":5957,"children":5958},{"style":191},[5959],{"type":59,"value":496},{"type":53,"tag":125,"props":5961,"children":5962},{"style":197},[5963],{"type":59,"value":390},{"type":53,"tag":125,"props":5965,"children":5966},{"style":138},[5967],{"type":59,"value":5758},{"type":53,"tag":125,"props":5969,"children":5970},{"style":197},[5971],{"type":59,"value":390},{"type":53,"tag":125,"props":5973,"children":5974},{"style":197},[5975],{"type":59,"value":416},{"type":53,"tag":125,"props":5977,"children":5978},{"style":191},[5979],{"type":59,"value":517},{"type":53,"tag":125,"props":5981,"children":5982},{"style":197},[5983],{"type":59,"value":390},{"type":53,"tag":125,"props":5985,"children":5986},{"style":138},[5987],{"type":59,"value":5787},{"type":53,"tag":125,"props":5989,"children":5990},{"style":197},[5991],{"type":59,"value":390},{"type":53,"tag":125,"props":5993,"children":5994},{"style":197},[5995],{"type":59,"value":416},{"type":53,"tag":125,"props":5997,"children":5998},{"style":197},[5999],{"type":59,"value":381},{"type":53,"tag":125,"props":6001,"children":6002},{"style":138},[6003],{"type":59,"value":5816},{"type":53,"tag":125,"props":6005,"children":6006},{"style":197},[6007],{"type":59,"value":390},{"type":53,"tag":125,"props":6009,"children":6010},{"style":197},[6011],{"type":59,"value":416},{"type":53,"tag":125,"props":6013,"children":6014},{"style":197},[6015],{"type":59,"value":381},{"type":53,"tag":125,"props":6017,"children":6018},{"style":138},[6019],{"type":59,"value":5845},{"type":53,"tag":125,"props":6021,"children":6022},{"style":197},[6023],{"type":59,"value":390},{"type":53,"tag":125,"props":6025,"children":6026},{"style":191},[6027],{"type":59,"value":6028},"])\n",{"type":53,"tag":125,"props":6030,"children":6031},{"class":127,"line":4480},[6032,6036,6040,6044],{"type":53,"tag":125,"props":6033,"children":6034},{"style":197},[6035],{"type":59,"value":1655},{"type":53,"tag":125,"props":6037,"children":6038},{"style":489},[6039],{"type":59,"value":1714},{"type":53,"tag":125,"props":6041,"children":6042},{"style":191},[6043],{"type":59,"value":1731},{"type":53,"tag":125,"props":6045,"children":6046},{"style":197},[6047],{"type":59,"value":395},{"type":53,"tag":106,"props":6049,"children":6051},{"id":6050},"error-handling",[6052],{"type":59,"value":6053},"Error Handling",{"type":53,"tag":113,"props":6055,"children":6057},{"className":342,"code":6056,"language":18,"meta":118,"style":118},"import { ErrorResponse } from \"@azure\u002Fcosmos\";\n\ntry {\n  const { resource } = await container.item(\"missing\", \"pk\").read();\n} catch (error) {\n  if (error instanceof ErrorResponse) {\n    switch (error.code) {\n      case 404:\n        console.log(\"Document not found\");\n        break;\n      case 409:\n        console.log(\"Conflict - document already exists\");\n        break;\n      case 412:\n        console.log(\"Precondition failed (ETag mismatch)\");\n        break;\n      case 429:\n        console.log(\"Rate limited - retry after:\", error.retryAfterInMs);\n        break;\n      default:\n        console.error(`Cosmos error ${error.code}: ${error.message}`);\n    }\n  }\n  throw error;\n}\n",[6058],{"type":53,"tag":121,"props":6059,"children":6060},{"__ignoreMap":118},[6061,6101,6108,6120,6213,6234,6266,6298,6316,6357,6369,6385,6425,6436,6452,6492,6503,6519,6577,6588,6600,6682,6690,6697,6713],{"type":53,"tag":125,"props":6062,"children":6063},{"class":127,"line":128},[6064,6068,6072,6077,6081,6085,6089,6093,6097],{"type":53,"tag":125,"props":6065,"children":6066},{"style":353},[6067],{"type":59,"value":356},{"type":53,"tag":125,"props":6069,"children":6070},{"style":197},[6071],{"type":59,"value":361},{"type":53,"tag":125,"props":6073,"children":6074},{"style":191},[6075],{"type":59,"value":6076}," ErrorResponse",{"type":53,"tag":125,"props":6078,"children":6079},{"style":197},[6080],{"type":59,"value":371},{"type":53,"tag":125,"props":6082,"children":6083},{"style":353},[6084],{"type":59,"value":376},{"type":53,"tag":125,"props":6086,"children":6087},{"style":197},[6088],{"type":59,"value":381},{"type":53,"tag":125,"props":6090,"children":6091},{"style":138},[6092],{"type":59,"value":48},{"type":53,"tag":125,"props":6094,"children":6095},{"style":197},[6096],{"type":59,"value":390},{"type":53,"tag":125,"props":6098,"children":6099},{"style":197},[6100],{"type":59,"value":395},{"type":53,"tag":125,"props":6102,"children":6103},{"class":127,"line":228},[6104],{"type":53,"tag":125,"props":6105,"children":6106},{"emptyLinePlaceholder":452},[6107],{"type":59,"value":455},{"type":53,"tag":125,"props":6109,"children":6110},{"class":127,"line":252},[6111,6116],{"type":53,"tag":125,"props":6112,"children":6113},{"style":353},[6114],{"type":59,"value":6115},"try",{"type":53,"tag":125,"props":6117,"children":6118},{"style":197},[6119],{"type":59,"value":1284},{"type":53,"tag":125,"props":6121,"children":6122},{"class":127,"line":274},[6123,6127,6131,6135,6139,6143,6147,6151,6155,6159,6163,6167,6172,6176,6180,6184,6189,6193,6197,6201,6205,6209],{"type":53,"tag":125,"props":6124,"children":6125},{"style":469},[6126],{"type":59,"value":2003},{"type":53,"tag":125,"props":6128,"children":6129},{"style":197},[6130],{"type":59,"value":361},{"type":53,"tag":125,"props":6132,"children":6133},{"style":191},[6134],{"type":59,"value":1838},{"type":53,"tag":125,"props":6136,"children":6137},{"style":197},[6138],{"type":59,"value":371},{"type":53,"tag":125,"props":6140,"children":6141},{"style":197},[6142],{"type":59,"value":1013},{"type":53,"tag":125,"props":6144,"children":6145},{"style":353},[6146],{"type":59,"value":1018},{"type":53,"tag":125,"props":6148,"children":6149},{"style":191},[6150],{"type":59,"value":1562},{"type":53,"tag":125,"props":6152,"children":6153},{"style":197},[6154],{"type":59,"value":639},{"type":53,"tag":125,"props":6156,"children":6157},{"style":489},[6158],{"type":59,"value":1660},{"type":53,"tag":125,"props":6160,"children":6161},{"style":504},[6162],{"type":59,"value":496},{"type":53,"tag":125,"props":6164,"children":6165},{"style":197},[6166],{"type":59,"value":390},{"type":53,"tag":125,"props":6168,"children":6169},{"style":138},[6170],{"type":59,"value":6171},"missing",{"type":53,"tag":125,"props":6173,"children":6174},{"style":197},[6175],{"type":59,"value":390},{"type":53,"tag":125,"props":6177,"children":6178},{"style":197},[6179],{"type":59,"value":416},{"type":53,"tag":125,"props":6181,"children":6182},{"style":197},[6183],{"type":59,"value":381},{"type":53,"tag":125,"props":6185,"children":6186},{"style":138},[6187],{"type":59,"value":6188},"pk",{"type":53,"tag":125,"props":6190,"children":6191},{"style":197},[6192],{"type":59,"value":390},{"type":53,"tag":125,"props":6194,"children":6195},{"style":504},[6196],{"type":59,"value":544},{"type":53,"tag":125,"props":6198,"children":6199},{"style":197},[6200],{"type":59,"value":639},{"type":53,"tag":125,"props":6202,"children":6203},{"style":489},[6204],{"type":59,"value":1714},{"type":53,"tag":125,"props":6206,"children":6207},{"style":504},[6208],{"type":59,"value":1731},{"type":53,"tag":125,"props":6210,"children":6211},{"style":197},[6212],{"type":59,"value":395},{"type":53,"tag":125,"props":6214,"children":6215},{"class":127,"line":284},[6216,6220,6225,6230],{"type":53,"tag":125,"props":6217,"children":6218},{"style":197},[6219],{"type":59,"value":539},{"type":53,"tag":125,"props":6221,"children":6222},{"style":353},[6223],{"type":59,"value":6224}," catch",{"type":53,"tag":125,"props":6226,"children":6227},{"style":191},[6228],{"type":59,"value":6229}," (error) ",{"type":53,"tag":125,"props":6231,"children":6232},{"style":197},[6233],{"type":59,"value":616},{"type":53,"tag":125,"props":6235,"children":6236},{"class":127,"line":306},[6237,6241,6245,6249,6254,6258,6262],{"type":53,"tag":125,"props":6238,"children":6239},{"style":353},[6240],{"type":59,"value":4943},{"type":53,"tag":125,"props":6242,"children":6243},{"style":504},[6244],{"type":59,"value":4948},{"type":53,"tag":125,"props":6246,"children":6247},{"style":191},[6248],{"type":59,"value":5102},{"type":53,"tag":125,"props":6250,"children":6251},{"style":197},[6252],{"type":59,"value":6253}," instanceof",{"type":53,"tag":125,"props":6255,"children":6256},{"style":132},[6257],{"type":59,"value":6076},{"type":53,"tag":125,"props":6259,"children":6260},{"style":504},[6261],{"type":59,"value":1697},{"type":53,"tag":125,"props":6263,"children":6264},{"style":197},[6265],{"type":59,"value":616},{"type":53,"tag":125,"props":6267,"children":6268},{"class":127,"line":559},[6269,6274,6278,6282,6286,6290,6294],{"type":53,"tag":125,"props":6270,"children":6271},{"style":353},[6272],{"type":59,"value":6273},"    switch",{"type":53,"tag":125,"props":6275,"children":6276},{"style":504},[6277],{"type":59,"value":4948},{"type":53,"tag":125,"props":6279,"children":6280},{"style":191},[6281],{"type":59,"value":5102},{"type":53,"tag":125,"props":6283,"children":6284},{"style":197},[6285],{"type":59,"value":639},{"type":53,"tag":125,"props":6287,"children":6288},{"style":191},[6289],{"type":59,"value":121},{"type":53,"tag":125,"props":6291,"children":6292},{"style":504},[6293],{"type":59,"value":1697},{"type":53,"tag":125,"props":6295,"children":6296},{"style":197},[6297],{"type":59,"value":616},{"type":53,"tag":125,"props":6299,"children":6300},{"class":127,"line":568},[6301,6306,6311],{"type":53,"tag":125,"props":6302,"children":6303},{"style":353},[6304],{"type":59,"value":6305},"      case",{"type":53,"tag":125,"props":6307,"children":6308},{"style":1505},[6309],{"type":59,"value":6310}," 404",{"type":53,"tag":125,"props":6312,"children":6313},{"style":197},[6314],{"type":59,"value":6315},":\n",{"type":53,"tag":125,"props":6317,"children":6318},{"class":127,"line":577},[6319,6324,6328,6332,6336,6340,6345,6349,6353],{"type":53,"tag":125,"props":6320,"children":6321},{"style":191},[6322],{"type":59,"value":6323},"        console",{"type":53,"tag":125,"props":6325,"children":6326},{"style":197},[6327],{"type":59,"value":639},{"type":53,"tag":125,"props":6329,"children":6330},{"style":489},[6331],{"type":59,"value":1776},{"type":53,"tag":125,"props":6333,"children":6334},{"style":504},[6335],{"type":59,"value":496},{"type":53,"tag":125,"props":6337,"children":6338},{"style":197},[6339],{"type":59,"value":390},{"type":53,"tag":125,"props":6341,"children":6342},{"style":138},[6343],{"type":59,"value":6344},"Document not found",{"type":53,"tag":125,"props":6346,"children":6347},{"style":197},[6348],{"type":59,"value":390},{"type":53,"tag":125,"props":6350,"children":6351},{"style":504},[6352],{"type":59,"value":544},{"type":53,"tag":125,"props":6354,"children":6355},{"style":197},[6356],{"type":59,"value":395},{"type":53,"tag":125,"props":6358,"children":6359},{"class":127,"line":585},[6360,6365],{"type":53,"tag":125,"props":6361,"children":6362},{"style":353},[6363],{"type":59,"value":6364},"        break",{"type":53,"tag":125,"props":6366,"children":6367},{"style":197},[6368],{"type":59,"value":395},{"type":53,"tag":125,"props":6370,"children":6371},{"class":127,"line":619},[6372,6376,6381],{"type":53,"tag":125,"props":6373,"children":6374},{"style":353},[6375],{"type":59,"value":6305},{"type":53,"tag":125,"props":6377,"children":6378},{"style":1505},[6379],{"type":59,"value":6380}," 409",{"type":53,"tag":125,"props":6382,"children":6383},{"style":197},[6384],{"type":59,"value":6315},{"type":53,"tag":125,"props":6386,"children":6387},{"class":127,"line":660},[6388,6392,6396,6400,6404,6408,6413,6417,6421],{"type":53,"tag":125,"props":6389,"children":6390},{"style":191},[6391],{"type":59,"value":6323},{"type":53,"tag":125,"props":6393,"children":6394},{"style":197},[6395],{"type":59,"value":639},{"type":53,"tag":125,"props":6397,"children":6398},{"style":489},[6399],{"type":59,"value":1776},{"type":53,"tag":125,"props":6401,"children":6402},{"style":504},[6403],{"type":59,"value":496},{"type":53,"tag":125,"props":6405,"children":6406},{"style":197},[6407],{"type":59,"value":390},{"type":53,"tag":125,"props":6409,"children":6410},{"style":138},[6411],{"type":59,"value":6412},"Conflict - document already exists",{"type":53,"tag":125,"props":6414,"children":6415},{"style":197},[6416],{"type":59,"value":390},{"type":53,"tag":125,"props":6418,"children":6419},{"style":504},[6420],{"type":59,"value":544},{"type":53,"tag":125,"props":6422,"children":6423},{"style":197},[6424],{"type":59,"value":395},{"type":53,"tag":125,"props":6426,"children":6427},{"class":127,"line":683},[6428,6432],{"type":53,"tag":125,"props":6429,"children":6430},{"style":353},[6431],{"type":59,"value":6364},{"type":53,"tag":125,"props":6433,"children":6434},{"style":197},[6435],{"type":59,"value":395},{"type":53,"tag":125,"props":6437,"children":6438},{"class":127,"line":1523},[6439,6443,6448],{"type":53,"tag":125,"props":6440,"children":6441},{"style":353},[6442],{"type":59,"value":6305},{"type":53,"tag":125,"props":6444,"children":6445},{"style":1505},[6446],{"type":59,"value":6447}," 412",{"type":53,"tag":125,"props":6449,"children":6450},{"style":197},[6451],{"type":59,"value":6315},{"type":53,"tag":125,"props":6453,"children":6454},{"class":127,"line":1531},[6455,6459,6463,6467,6471,6475,6480,6484,6488],{"type":53,"tag":125,"props":6456,"children":6457},{"style":191},[6458],{"type":59,"value":6323},{"type":53,"tag":125,"props":6460,"children":6461},{"style":197},[6462],{"type":59,"value":639},{"type":53,"tag":125,"props":6464,"children":6465},{"style":489},[6466],{"type":59,"value":1776},{"type":53,"tag":125,"props":6468,"children":6469},{"style":504},[6470],{"type":59,"value":496},{"type":53,"tag":125,"props":6472,"children":6473},{"style":197},[6474],{"type":59,"value":390},{"type":53,"tag":125,"props":6476,"children":6477},{"style":138},[6478],{"type":59,"value":6479},"Precondition failed (ETag mismatch)",{"type":53,"tag":125,"props":6481,"children":6482},{"style":197},[6483],{"type":59,"value":390},{"type":53,"tag":125,"props":6485,"children":6486},{"style":504},[6487],{"type":59,"value":544},{"type":53,"tag":125,"props":6489,"children":6490},{"style":197},[6491],{"type":59,"value":395},{"type":53,"tag":125,"props":6493,"children":6494},{"class":127,"line":4273},[6495,6499],{"type":53,"tag":125,"props":6496,"children":6497},{"style":353},[6498],{"type":59,"value":6364},{"type":53,"tag":125,"props":6500,"children":6501},{"style":197},[6502],{"type":59,"value":395},{"type":53,"tag":125,"props":6504,"children":6505},{"class":127,"line":4281},[6506,6510,6515],{"type":53,"tag":125,"props":6507,"children":6508},{"style":353},[6509],{"type":59,"value":6305},{"type":53,"tag":125,"props":6511,"children":6512},{"style":1505},[6513],{"type":59,"value":6514}," 429",{"type":53,"tag":125,"props":6516,"children":6517},{"style":197},[6518],{"type":59,"value":6315},{"type":53,"tag":125,"props":6520,"children":6521},{"class":127,"line":4289},[6522,6526,6530,6534,6538,6542,6547,6551,6555,6560,6564,6569,6573],{"type":53,"tag":125,"props":6523,"children":6524},{"style":191},[6525],{"type":59,"value":6323},{"type":53,"tag":125,"props":6527,"children":6528},{"style":197},[6529],{"type":59,"value":639},{"type":53,"tag":125,"props":6531,"children":6532},{"style":489},[6533],{"type":59,"value":1776},{"type":53,"tag":125,"props":6535,"children":6536},{"style":504},[6537],{"type":59,"value":496},{"type":53,"tag":125,"props":6539,"children":6540},{"style":197},[6541],{"type":59,"value":390},{"type":53,"tag":125,"props":6543,"children":6544},{"style":138},[6545],{"type":59,"value":6546},"Rate limited - retry after:",{"type":53,"tag":125,"props":6548,"children":6549},{"style":197},[6550],{"type":59,"value":390},{"type":53,"tag":125,"props":6552,"children":6553},{"style":197},[6554],{"type":59,"value":416},{"type":53,"tag":125,"props":6556,"children":6557},{"style":191},[6558],{"type":59,"value":6559}," error",{"type":53,"tag":125,"props":6561,"children":6562},{"style":197},[6563],{"type":59,"value":639},{"type":53,"tag":125,"props":6565,"children":6566},{"style":191},[6567],{"type":59,"value":6568},"retryAfterInMs",{"type":53,"tag":125,"props":6570,"children":6571},{"style":504},[6572],{"type":59,"value":544},{"type":53,"tag":125,"props":6574,"children":6575},{"style":197},[6576],{"type":59,"value":395},{"type":53,"tag":125,"props":6578,"children":6579},{"class":127,"line":4318},[6580,6584],{"type":53,"tag":125,"props":6581,"children":6582},{"style":353},[6583],{"type":59,"value":6364},{"type":53,"tag":125,"props":6585,"children":6586},{"style":197},[6587],{"type":59,"value":395},{"type":53,"tag":125,"props":6589,"children":6590},{"class":127,"line":4347},[6591,6596],{"type":53,"tag":125,"props":6592,"children":6593},{"style":353},[6594],{"type":59,"value":6595},"      default",{"type":53,"tag":125,"props":6597,"children":6598},{"style":197},[6599],{"type":59,"value":6315},{"type":53,"tag":125,"props":6601,"children":6602},{"class":127,"line":4375},[6603,6607,6611,6615,6619,6623,6628,6632,6636,6640,6644,6648,6653,6657,6661,6665,6670,6674,6678],{"type":53,"tag":125,"props":6604,"children":6605},{"style":191},[6606],{"type":59,"value":6323},{"type":53,"tag":125,"props":6608,"children":6609},{"style":197},[6610],{"type":59,"value":639},{"type":53,"tag":125,"props":6612,"children":6613},{"style":489},[6614],{"type":59,"value":5102},{"type":53,"tag":125,"props":6616,"children":6617},{"style":504},[6618],{"type":59,"value":496},{"type":53,"tag":125,"props":6620,"children":6621},{"style":197},[6622],{"type":59,"value":3588},{"type":53,"tag":125,"props":6624,"children":6625},{"style":138},[6626],{"type":59,"value":6627},"Cosmos error ",{"type":53,"tag":125,"props":6629,"children":6630},{"style":197},[6631],{"type":59,"value":3598},{"type":53,"tag":125,"props":6633,"children":6634},{"style":191},[6635],{"type":59,"value":5102},{"type":53,"tag":125,"props":6637,"children":6638},{"style":197},[6639],{"type":59,"value":639},{"type":53,"tag":125,"props":6641,"children":6642},{"style":191},[6643],{"type":59,"value":121},{"type":53,"tag":125,"props":6645,"children":6646},{"style":197},[6647],{"type":59,"value":539},{"type":53,"tag":125,"props":6649,"children":6650},{"style":138},[6651],{"type":59,"value":6652},": ",{"type":53,"tag":125,"props":6654,"children":6655},{"style":197},[6656],{"type":59,"value":3598},{"type":53,"tag":125,"props":6658,"children":6659},{"style":191},[6660],{"type":59,"value":5102},{"type":53,"tag":125,"props":6662,"children":6663},{"style":197},[6664],{"type":59,"value":639},{"type":53,"tag":125,"props":6666,"children":6667},{"style":191},[6668],{"type":59,"value":6669},"message",{"type":53,"tag":125,"props":6671,"children":6672},{"style":197},[6673],{"type":59,"value":5152},{"type":53,"tag":125,"props":6675,"children":6676},{"style":504},[6677],{"type":59,"value":544},{"type":53,"tag":125,"props":6679,"children":6680},{"style":197},[6681],{"type":59,"value":395},{"type":53,"tag":125,"props":6683,"children":6684},{"class":127,"line":4464},[6685],{"type":53,"tag":125,"props":6686,"children":6687},{"style":197},[6688],{"type":59,"value":6689},"    }\n",{"type":53,"tag":125,"props":6691,"children":6692},{"class":127,"line":4472},[6693],{"type":53,"tag":125,"props":6694,"children":6695},{"style":197},[6696],{"type":59,"value":5169},{"type":53,"tag":125,"props":6698,"children":6699},{"class":127,"line":4480},[6700,6705,6709],{"type":53,"tag":125,"props":6701,"children":6702},{"style":353},[6703],{"type":59,"value":6704},"  throw",{"type":53,"tag":125,"props":6706,"children":6707},{"style":191},[6708],{"type":59,"value":6559},{"type":53,"tag":125,"props":6710,"children":6711},{"style":197},[6712],{"type":59,"value":395},{"type":53,"tag":125,"props":6714,"children":6715},{"class":127,"line":4509},[6716],{"type":53,"tag":125,"props":6717,"children":6718},{"style":197},[6719],{"type":59,"value":1372},{"type":53,"tag":106,"props":6721,"children":6723},{"id":6722},"optimistic-concurrency-etags",[6724],{"type":59,"value":6725},"Optimistic Concurrency (ETags)",{"type":53,"tag":113,"props":6727,"children":6729},{"className":342,"code":6728,"language":18,"meta":118,"style":118},"\u002F\u002F Read with ETag\nconst { resource, etag } = await container\n  .item(\"product-1\", \"electronics\")\n  .read\u003CProduct>();\n\nif (resource && etag) {\n  resource.price = 899.99;\n  \n  try {\n    \u002F\u002F Replace only if ETag matches\n    await container.item(\"product-1\", \"electronics\").replace(resource, {\n      accessCondition: { type: \"IfMatch\", condition: etag },\n    });\n  } catch (error) {\n    if (error instanceof ErrorResponse && error.code === 412) {\n      console.log(\"Document was modified by another process\");\n    }\n  }\n}\n",[6730],{"type":53,"tag":121,"props":6731,"children":6732},{"__ignoreMap":118},[6733,6741,6781,6828,6859,6866,6892,6920,6928,6940,6948,7028,7088,7104,7131,7188,7229,7236,7243],{"type":53,"tag":125,"props":6734,"children":6735},{"class":127,"line":128},[6736],{"type":53,"tag":125,"props":6737,"children":6738},{"style":278},[6739],{"type":59,"value":6740},"\u002F\u002F Read with ETag\n",{"type":53,"tag":125,"props":6742,"children":6743},{"class":127,"line":228},[6744,6748,6752,6756,6760,6765,6769,6773,6777],{"type":53,"tag":125,"props":6745,"children":6746},{"style":469},[6747],{"type":59,"value":472},{"type":53,"tag":125,"props":6749,"children":6750},{"style":197},[6751],{"type":59,"value":361},{"type":53,"tag":125,"props":6753,"children":6754},{"style":191},[6755],{"type":59,"value":1838},{"type":53,"tag":125,"props":6757,"children":6758},{"style":197},[6759],{"type":59,"value":416},{"type":53,"tag":125,"props":6761,"children":6762},{"style":191},[6763],{"type":59,"value":6764}," etag ",{"type":53,"tag":125,"props":6766,"children":6767},{"style":197},[6768],{"type":59,"value":539},{"type":53,"tag":125,"props":6770,"children":6771},{"style":197},[6772],{"type":59,"value":1013},{"type":53,"tag":125,"props":6774,"children":6775},{"style":353},[6776],{"type":59,"value":1018},{"type":53,"tag":125,"props":6778,"children":6779},{"style":191},[6780],{"type":59,"value":1647},{"type":53,"tag":125,"props":6782,"children":6783},{"class":127,"line":252},[6784,6788,6792,6796,6800,6804,6808,6812,6816,6820,6824],{"type":53,"tag":125,"props":6785,"children":6786},{"style":197},[6787],{"type":59,"value":1655},{"type":53,"tag":125,"props":6789,"children":6790},{"style":489},[6791],{"type":59,"value":1660},{"type":53,"tag":125,"props":6793,"children":6794},{"style":191},[6795],{"type":59,"value":496},{"type":53,"tag":125,"props":6797,"children":6798},{"style":197},[6799],{"type":59,"value":390},{"type":53,"tag":125,"props":6801,"children":6802},{"style":138},[6803],{"type":59,"value":1427},{"type":53,"tag":125,"props":6805,"children":6806},{"style":197},[6807],{"type":59,"value":390},{"type":53,"tag":125,"props":6809,"children":6810},{"style":197},[6811],{"type":59,"value":416},{"type":53,"tag":125,"props":6813,"children":6814},{"style":197},[6815],{"type":59,"value":381},{"type":53,"tag":125,"props":6817,"children":6818},{"style":138},[6819],{"type":59,"value":1455},{"type":53,"tag":125,"props":6821,"children":6822},{"style":197},[6823],{"type":59,"value":390},{"type":53,"tag":125,"props":6825,"children":6826},{"style":191},[6827],{"type":59,"value":1911},{"type":53,"tag":125,"props":6829,"children":6830},{"class":127,"line":274},[6831,6835,6839,6843,6847,6851,6855],{"type":53,"tag":125,"props":6832,"children":6833},{"style":197},[6834],{"type":59,"value":1655},{"type":53,"tag":125,"props":6836,"children":6837},{"style":489},[6838],{"type":59,"value":1714},{"type":53,"tag":125,"props":6840,"children":6841},{"style":197},[6842],{"type":59,"value":210},{"type":53,"tag":125,"props":6844,"children":6845},{"style":132},[6846],{"type":59,"value":1589},{"type":53,"tag":125,"props":6848,"children":6849},{"style":197},[6850],{"type":59,"value":220},{"type":53,"tag":125,"props":6852,"children":6853},{"style":191},[6854],{"type":59,"value":1731},{"type":53,"tag":125,"props":6856,"children":6857},{"style":197},[6858],{"type":59,"value":395},{"type":53,"tag":125,"props":6860,"children":6861},{"class":127,"line":284},[6862],{"type":53,"tag":125,"props":6863,"children":6864},{"emptyLinePlaceholder":452},[6865],{"type":59,"value":455},{"type":53,"tag":125,"props":6867,"children":6868},{"class":127,"line":306},[6869,6873,6878,6883,6888],{"type":53,"tag":125,"props":6870,"children":6871},{"style":353},[6872],{"type":59,"value":1750},{"type":53,"tag":125,"props":6874,"children":6875},{"style":191},[6876],{"type":59,"value":6877}," (resource ",{"type":53,"tag":125,"props":6879,"children":6880},{"style":197},[6881],{"type":59,"value":6882},"&&",{"type":53,"tag":125,"props":6884,"children":6885},{"style":191},[6886],{"type":59,"value":6887}," etag) ",{"type":53,"tag":125,"props":6889,"children":6890},{"style":197},[6891],{"type":59,"value":616},{"type":53,"tag":125,"props":6893,"children":6894},{"class":127,"line":559},[6895,6900,6904,6908,6912,6916],{"type":53,"tag":125,"props":6896,"children":6897},{"style":191},[6898],{"type":59,"value":6899},"  resource",{"type":53,"tag":125,"props":6901,"children":6902},{"style":197},[6903],{"type":59,"value":639},{"type":53,"tag":125,"props":6905,"children":6906},{"style":191},[6907],{"type":59,"value":1982},{"type":53,"tag":125,"props":6909,"children":6910},{"style":197},[6911],{"type":59,"value":1013},{"type":53,"tag":125,"props":6913,"children":6914},{"style":1505},[6915],{"type":59,"value":1991},{"type":53,"tag":125,"props":6917,"children":6918},{"style":197},[6919],{"type":59,"value":395},{"type":53,"tag":125,"props":6921,"children":6922},{"class":127,"line":568},[6923],{"type":53,"tag":125,"props":6924,"children":6925},{"style":504},[6926],{"type":59,"value":6927},"  \n",{"type":53,"tag":125,"props":6929,"children":6930},{"class":127,"line":577},[6931,6936],{"type":53,"tag":125,"props":6932,"children":6933},{"style":353},[6934],{"type":59,"value":6935},"  try",{"type":53,"tag":125,"props":6937,"children":6938},{"style":197},[6939],{"type":59,"value":1284},{"type":53,"tag":125,"props":6941,"children":6942},{"class":127,"line":585},[6943],{"type":53,"tag":125,"props":6944,"children":6945},{"style":278},[6946],{"type":59,"value":6947},"    \u002F\u002F Replace only if ETag matches\n",{"type":53,"tag":125,"props":6949,"children":6950},{"class":127,"line":619},[6951,6956,6960,6964,6968,6972,6976,6980,6984,6988,6992,6996,7000,7004,7008,7012,7016,7020,7024],{"type":53,"tag":125,"props":6952,"children":6953},{"style":353},[6954],{"type":59,"value":6955},"    await",{"type":53,"tag":125,"props":6957,"children":6958},{"style":191},[6959],{"type":59,"value":1562},{"type":53,"tag":125,"props":6961,"children":6962},{"style":197},[6963],{"type":59,"value":639},{"type":53,"tag":125,"props":6965,"children":6966},{"style":489},[6967],{"type":59,"value":1660},{"type":53,"tag":125,"props":6969,"children":6970},{"style":504},[6971],{"type":59,"value":496},{"type":53,"tag":125,"props":6973,"children":6974},{"style":197},[6975],{"type":59,"value":390},{"type":53,"tag":125,"props":6977,"children":6978},{"style":138},[6979],{"type":59,"value":1427},{"type":53,"tag":125,"props":6981,"children":6982},{"style":197},[6983],{"type":59,"value":390},{"type":53,"tag":125,"props":6985,"children":6986},{"style":197},[6987],{"type":59,"value":416},{"type":53,"tag":125,"props":6989,"children":6990},{"style":197},[6991],{"type":59,"value":381},{"type":53,"tag":125,"props":6993,"children":6994},{"style":138},[6995],{"type":59,"value":1455},{"type":53,"tag":125,"props":6997,"children":6998},{"style":197},[6999],{"type":59,"value":390},{"type":53,"tag":125,"props":7001,"children":7002},{"style":504},[7003],{"type":59,"value":544},{"type":53,"tag":125,"props":7005,"children":7006},{"style":197},[7007],{"type":59,"value":639},{"type":53,"tag":125,"props":7009,"children":7010},{"style":489},[7011],{"type":59,"value":2096},{"type":53,"tag":125,"props":7013,"children":7014},{"style":504},[7015],{"type":59,"value":496},{"type":53,"tag":125,"props":7017,"children":7018},{"style":191},[7019],{"type":59,"value":1785},{"type":53,"tag":125,"props":7021,"children":7022},{"style":197},[7023],{"type":59,"value":416},{"type":53,"tag":125,"props":7025,"children":7026},{"style":197},[7027],{"type":59,"value":1284},{"type":53,"tag":125,"props":7029,"children":7030},{"class":127,"line":660},[7031,7036,7040,7044,7049,7053,7057,7062,7066,7070,7075,7079,7084],{"type":53,"tag":125,"props":7032,"children":7033},{"style":504},[7034],{"type":59,"value":7035},"      accessCondition",{"type":53,"tag":125,"props":7037,"children":7038},{"style":197},[7039],{"type":59,"value":512},{"type":53,"tag":125,"props":7041,"children":7042},{"style":197},[7043],{"type":59,"value":361},{"type":53,"tag":125,"props":7045,"children":7046},{"style":504},[7047],{"type":59,"value":7048}," type",{"type":53,"tag":125,"props":7050,"children":7051},{"style":197},[7052],{"type":59,"value":512},{"type":53,"tag":125,"props":7054,"children":7055},{"style":197},[7056],{"type":59,"value":381},{"type":53,"tag":125,"props":7058,"children":7059},{"style":138},[7060],{"type":59,"value":7061},"IfMatch",{"type":53,"tag":125,"props":7063,"children":7064},{"style":197},[7065],{"type":59,"value":390},{"type":53,"tag":125,"props":7067,"children":7068},{"style":197},[7069],{"type":59,"value":416},{"type":53,"tag":125,"props":7071,"children":7072},{"style":504},[7073],{"type":59,"value":7074}," condition",{"type":53,"tag":125,"props":7076,"children":7077},{"style":197},[7078],{"type":59,"value":512},{"type":53,"tag":125,"props":7080,"children":7081},{"style":191},[7082],{"type":59,"value":7083}," etag",{"type":53,"tag":125,"props":7085,"children":7086},{"style":197},[7087],{"type":59,"value":2614},{"type":53,"tag":125,"props":7089,"children":7090},{"class":127,"line":683},[7091,7096,7100],{"type":53,"tag":125,"props":7092,"children":7093},{"style":197},[7094],{"type":59,"value":7095},"    }",{"type":53,"tag":125,"props":7097,"children":7098},{"style":504},[7099],{"type":59,"value":544},{"type":53,"tag":125,"props":7101,"children":7102},{"style":197},[7103],{"type":59,"value":395},{"type":53,"tag":125,"props":7105,"children":7106},{"class":127,"line":1523},[7107,7111,7115,7119,7123,7127],{"type":53,"tag":125,"props":7108,"children":7109},{"style":197},[7110],{"type":59,"value":5076},{"type":53,"tag":125,"props":7112,"children":7113},{"style":353},[7114],{"type":59,"value":6224},{"type":53,"tag":125,"props":7116,"children":7117},{"style":504},[7118],{"type":59,"value":4948},{"type":53,"tag":125,"props":7120,"children":7121},{"style":191},[7122],{"type":59,"value":5102},{"type":53,"tag":125,"props":7124,"children":7125},{"style":504},[7126],{"type":59,"value":1697},{"type":53,"tag":125,"props":7128,"children":7129},{"style":197},[7130],{"type":59,"value":616},{"type":53,"tag":125,"props":7132,"children":7133},{"class":127,"line":1531},[7134,7139,7143,7147,7151,7155,7159,7163,7167,7171,7176,7180,7184],{"type":53,"tag":125,"props":7135,"children":7136},{"style":353},[7137],{"type":59,"value":7138},"    if",{"type":53,"tag":125,"props":7140,"children":7141},{"style":504},[7142],{"type":59,"value":4948},{"type":53,"tag":125,"props":7144,"children":7145},{"style":191},[7146],{"type":59,"value":5102},{"type":53,"tag":125,"props":7148,"children":7149},{"style":197},[7150],{"type":59,"value":6253},{"type":53,"tag":125,"props":7152,"children":7153},{"style":132},[7154],{"type":59,"value":6076},{"type":53,"tag":125,"props":7156,"children":7157},{"style":197},[7158],{"type":59,"value":4976},{"type":53,"tag":125,"props":7160,"children":7161},{"style":191},[7162],{"type":59,"value":6559},{"type":53,"tag":125,"props":7164,"children":7165},{"style":197},[7166],{"type":59,"value":639},{"type":53,"tag":125,"props":7168,"children":7169},{"style":191},[7170],{"type":59,"value":121},{"type":53,"tag":125,"props":7172,"children":7173},{"style":197},[7174],{"type":59,"value":7175}," ===",{"type":53,"tag":125,"props":7177,"children":7178},{"style":1505},[7179],{"type":59,"value":6447},{"type":53,"tag":125,"props":7181,"children":7182},{"style":504},[7183],{"type":59,"value":1697},{"type":53,"tag":125,"props":7185,"children":7186},{"style":197},[7187],{"type":59,"value":616},{"type":53,"tag":125,"props":7189,"children":7190},{"class":127,"line":4273},[7191,7196,7200,7204,7208,7212,7217,7221,7225],{"type":53,"tag":125,"props":7192,"children":7193},{"style":191},[7194],{"type":59,"value":7195},"      console",{"type":53,"tag":125,"props":7197,"children":7198},{"style":197},[7199],{"type":59,"value":639},{"type":53,"tag":125,"props":7201,"children":7202},{"style":489},[7203],{"type":59,"value":1776},{"type":53,"tag":125,"props":7205,"children":7206},{"style":504},[7207],{"type":59,"value":496},{"type":53,"tag":125,"props":7209,"children":7210},{"style":197},[7211],{"type":59,"value":390},{"type":53,"tag":125,"props":7213,"children":7214},{"style":138},[7215],{"type":59,"value":7216},"Document was modified by another process",{"type":53,"tag":125,"props":7218,"children":7219},{"style":197},[7220],{"type":59,"value":390},{"type":53,"tag":125,"props":7222,"children":7223},{"style":504},[7224],{"type":59,"value":544},{"type":53,"tag":125,"props":7226,"children":7227},{"style":197},[7228],{"type":59,"value":395},{"type":53,"tag":125,"props":7230,"children":7231},{"class":127,"line":4281},[7232],{"type":53,"tag":125,"props":7233,"children":7234},{"style":197},[7235],{"type":59,"value":6689},{"type":53,"tag":125,"props":7237,"children":7238},{"class":127,"line":4289},[7239],{"type":53,"tag":125,"props":7240,"children":7241},{"style":197},[7242],{"type":59,"value":5169},{"type":53,"tag":125,"props":7244,"children":7245},{"class":127,"line":4318},[7246],{"type":53,"tag":125,"props":7247,"children":7248},{"style":197},[7249],{"type":59,"value":1372},{"type":53,"tag":106,"props":7251,"children":7253},{"id":7252},"typescript-types-reference",[7254],{"type":59,"value":7255},"TypeScript Types Reference",{"type":53,"tag":113,"props":7257,"children":7259},{"className":342,"code":7258,"language":18,"meta":118,"style":118},"import {\n  \u002F\u002F Client & Resources\n  CosmosClient,\n  Database,\n  Container,\n  Item,\n  Items,\n  \n  \u002F\u002F Operations\n  OperationInput,\n  BulkOperationType,\n  PatchOperation,\n  \n  \u002F\u002F Queries\n  SqlQuerySpec,\n  SqlParameter,\n  FeedOptions,\n  \n  \u002F\u002F Partition Keys\n  PartitionKeyDefinition,\n  PartitionKeyDefinitionVersion,\n  PartitionKeyKind,\n  \n  \u002F\u002F Responses\n  ItemResponse,\n  FeedResponse,\n  ResourceResponse,\n  \n  \u002F\u002F Errors\n  ErrorResponse,\n} from \"@azure\u002Fcosmos\";\n",[7260],{"type":53,"tag":121,"props":7261,"children":7262},{"__ignoreMap":118},[7263,7274,7282,7294,7306,7318,7330,7342,7349,7357,7369,7381,7393,7400,7408,7420,7432,7444,7451,7459,7471,7483,7495,7502,7510,7522,7534,7546,7553,7561,7573],{"type":53,"tag":125,"props":7264,"children":7265},{"class":127,"line":128},[7266,7270],{"type":53,"tag":125,"props":7267,"children":7268},{"style":353},[7269],{"type":59,"value":356},{"type":53,"tag":125,"props":7271,"children":7272},{"style":197},[7273],{"type":59,"value":1284},{"type":53,"tag":125,"props":7275,"children":7276},{"class":127,"line":228},[7277],{"type":53,"tag":125,"props":7278,"children":7279},{"style":278},[7280],{"type":59,"value":7281},"  \u002F\u002F Client & Resources\n",{"type":53,"tag":125,"props":7283,"children":7284},{"class":127,"line":252},[7285,7290],{"type":53,"tag":125,"props":7286,"children":7287},{"style":191},[7288],{"type":59,"value":7289},"  CosmosClient",{"type":53,"tag":125,"props":7291,"children":7292},{"style":197},[7293],{"type":59,"value":680},{"type":53,"tag":125,"props":7295,"children":7296},{"class":127,"line":274},[7297,7302],{"type":53,"tag":125,"props":7298,"children":7299},{"style":191},[7300],{"type":59,"value":7301},"  Database",{"type":53,"tag":125,"props":7303,"children":7304},{"style":197},[7305],{"type":59,"value":680},{"type":53,"tag":125,"props":7307,"children":7308},{"class":127,"line":284},[7309,7314],{"type":53,"tag":125,"props":7310,"children":7311},{"style":191},[7312],{"type":59,"value":7313},"  Container",{"type":53,"tag":125,"props":7315,"children":7316},{"style":197},[7317],{"type":59,"value":680},{"type":53,"tag":125,"props":7319,"children":7320},{"class":127,"line":306},[7321,7326],{"type":53,"tag":125,"props":7322,"children":7323},{"style":191},[7324],{"type":59,"value":7325},"  Item",{"type":53,"tag":125,"props":7327,"children":7328},{"style":197},[7329],{"type":59,"value":680},{"type":53,"tag":125,"props":7331,"children":7332},{"class":127,"line":559},[7333,7338],{"type":53,"tag":125,"props":7334,"children":7335},{"style":191},[7336],{"type":59,"value":7337},"  Items",{"type":53,"tag":125,"props":7339,"children":7340},{"style":197},[7341],{"type":59,"value":680},{"type":53,"tag":125,"props":7343,"children":7344},{"class":127,"line":568},[7345],{"type":53,"tag":125,"props":7346,"children":7347},{"style":504},[7348],{"type":59,"value":6927},{"type":53,"tag":125,"props":7350,"children":7351},{"class":127,"line":577},[7352],{"type":53,"tag":125,"props":7353,"children":7354},{"style":278},[7355],{"type":59,"value":7356},"  \u002F\u002F Operations\n",{"type":53,"tag":125,"props":7358,"children":7359},{"class":127,"line":585},[7360,7365],{"type":53,"tag":125,"props":7361,"children":7362},{"style":191},[7363],{"type":59,"value":7364},"  OperationInput",{"type":53,"tag":125,"props":7366,"children":7367},{"style":197},[7368],{"type":59,"value":680},{"type":53,"tag":125,"props":7370,"children":7371},{"class":127,"line":619},[7372,7377],{"type":53,"tag":125,"props":7373,"children":7374},{"style":191},[7375],{"type":59,"value":7376},"  BulkOperationType",{"type":53,"tag":125,"props":7378,"children":7379},{"style":197},[7380],{"type":59,"value":680},{"type":53,"tag":125,"props":7382,"children":7383},{"class":127,"line":660},[7384,7389],{"type":53,"tag":125,"props":7385,"children":7386},{"style":191},[7387],{"type":59,"value":7388},"  PatchOperation",{"type":53,"tag":125,"props":7390,"children":7391},{"style":197},[7392],{"type":59,"value":680},{"type":53,"tag":125,"props":7394,"children":7395},{"class":127,"line":683},[7396],{"type":53,"tag":125,"props":7397,"children":7398},{"style":504},[7399],{"type":59,"value":6927},{"type":53,"tag":125,"props":7401,"children":7402},{"class":127,"line":1523},[7403],{"type":53,"tag":125,"props":7404,"children":7405},{"style":278},[7406],{"type":59,"value":7407},"  \u002F\u002F Queries\n",{"type":53,"tag":125,"props":7409,"children":7410},{"class":127,"line":1531},[7411,7416],{"type":53,"tag":125,"props":7412,"children":7413},{"style":191},[7414],{"type":59,"value":7415},"  SqlQuerySpec",{"type":53,"tag":125,"props":7417,"children":7418},{"style":197},[7419],{"type":59,"value":680},{"type":53,"tag":125,"props":7421,"children":7422},{"class":127,"line":4273},[7423,7428],{"type":53,"tag":125,"props":7424,"children":7425},{"style":191},[7426],{"type":59,"value":7427},"  SqlParameter",{"type":53,"tag":125,"props":7429,"children":7430},{"style":197},[7431],{"type":59,"value":680},{"type":53,"tag":125,"props":7433,"children":7434},{"class":127,"line":4281},[7435,7440],{"type":53,"tag":125,"props":7436,"children":7437},{"style":191},[7438],{"type":59,"value":7439},"  FeedOptions",{"type":53,"tag":125,"props":7441,"children":7442},{"style":197},[7443],{"type":59,"value":680},{"type":53,"tag":125,"props":7445,"children":7446},{"class":127,"line":4289},[7447],{"type":53,"tag":125,"props":7448,"children":7449},{"style":504},[7450],{"type":59,"value":6927},{"type":53,"tag":125,"props":7452,"children":7453},{"class":127,"line":4318},[7454],{"type":53,"tag":125,"props":7455,"children":7456},{"style":278},[7457],{"type":59,"value":7458},"  \u002F\u002F Partition Keys\n",{"type":53,"tag":125,"props":7460,"children":7461},{"class":127,"line":4347},[7462,7467],{"type":53,"tag":125,"props":7463,"children":7464},{"style":191},[7465],{"type":59,"value":7466},"  PartitionKeyDefinition",{"type":53,"tag":125,"props":7468,"children":7469},{"style":197},[7470],{"type":59,"value":680},{"type":53,"tag":125,"props":7472,"children":7473},{"class":127,"line":4375},[7474,7479],{"type":53,"tag":125,"props":7475,"children":7476},{"style":191},[7477],{"type":59,"value":7478},"  PartitionKeyDefinitionVersion",{"type":53,"tag":125,"props":7480,"children":7481},{"style":197},[7482],{"type":59,"value":680},{"type":53,"tag":125,"props":7484,"children":7485},{"class":127,"line":4464},[7486,7491],{"type":53,"tag":125,"props":7487,"children":7488},{"style":191},[7489],{"type":59,"value":7490},"  PartitionKeyKind",{"type":53,"tag":125,"props":7492,"children":7493},{"style":197},[7494],{"type":59,"value":680},{"type":53,"tag":125,"props":7496,"children":7497},{"class":127,"line":4472},[7498],{"type":53,"tag":125,"props":7499,"children":7500},{"style":504},[7501],{"type":59,"value":6927},{"type":53,"tag":125,"props":7503,"children":7504},{"class":127,"line":4480},[7505],{"type":53,"tag":125,"props":7506,"children":7507},{"style":278},[7508],{"type":59,"value":7509},"  \u002F\u002F Responses\n",{"type":53,"tag":125,"props":7511,"children":7512},{"class":127,"line":4509},[7513,7518],{"type":53,"tag":125,"props":7514,"children":7515},{"style":191},[7516],{"type":59,"value":7517},"  ItemResponse",{"type":53,"tag":125,"props":7519,"children":7520},{"style":197},[7521],{"type":59,"value":680},{"type":53,"tag":125,"props":7523,"children":7524},{"class":127,"line":4538},[7525,7530],{"type":53,"tag":125,"props":7526,"children":7527},{"style":191},[7528],{"type":59,"value":7529},"  FeedResponse",{"type":53,"tag":125,"props":7531,"children":7532},{"style":197},[7533],{"type":59,"value":680},{"type":53,"tag":125,"props":7535,"children":7536},{"class":127,"line":4567},[7537,7542],{"type":53,"tag":125,"props":7538,"children":7539},{"style":191},[7540],{"type":59,"value":7541},"  ResourceResponse",{"type":53,"tag":125,"props":7543,"children":7544},{"style":197},[7545],{"type":59,"value":680},{"type":53,"tag":125,"props":7547,"children":7548},{"class":127,"line":4575},[7549],{"type":53,"tag":125,"props":7550,"children":7551},{"style":504},[7552],{"type":59,"value":6927},{"type":53,"tag":125,"props":7554,"children":7555},{"class":127,"line":4583},[7556],{"type":53,"tag":125,"props":7557,"children":7558},{"style":278},[7559],{"type":59,"value":7560},"  \u002F\u002F Errors\n",{"type":53,"tag":125,"props":7562,"children":7563},{"class":127,"line":4612},[7564,7569],{"type":53,"tag":125,"props":7565,"children":7566},{"style":191},[7567],{"type":59,"value":7568},"  ErrorResponse",{"type":53,"tag":125,"props":7570,"children":7571},{"style":197},[7572],{"type":59,"value":680},{"type":53,"tag":125,"props":7574,"children":7575},{"class":127,"line":4641},[7576,7580,7584,7588,7592,7596],{"type":53,"tag":125,"props":7577,"children":7578},{"style":197},[7579],{"type":59,"value":539},{"type":53,"tag":125,"props":7581,"children":7582},{"style":353},[7583],{"type":59,"value":376},{"type":53,"tag":125,"props":7585,"children":7586},{"style":197},[7587],{"type":59,"value":381},{"type":53,"tag":125,"props":7589,"children":7590},{"style":138},[7591],{"type":59,"value":48},{"type":53,"tag":125,"props":7593,"children":7594},{"style":197},[7595],{"type":59,"value":390},{"type":53,"tag":125,"props":7597,"children":7598},{"style":197},[7599],{"type":59,"value":395},{"type":53,"tag":106,"props":7601,"children":7603},{"id":7602},"best-practices",[7604],{"type":59,"value":7605},"Best Practices",{"type":53,"tag":7607,"props":7608,"children":7609},"ol",{},[7610,7644,7654,7664,7679,7689,7699],{"type":53,"tag":85,"props":7611,"children":7612},{},[7613,7618,7620,7626,7628,7634,7636,7642],{"type":53,"tag":75,"props":7614,"children":7615},{},[7616],{"type":59,"value":7617},"Use Microsoft Entra Token Credential",{"type":59,"value":7619}," — Use ",{"type":53,"tag":121,"props":7621,"children":7623},{"className":7622},[],[7624],{"type":59,"value":7625},"DefaultAzureCredential",{"type":59,"value":7627}," for local development; use ",{"type":53,"tag":121,"props":7629,"children":7631},{"className":7630},[],[7632],{"type":59,"value":7633},"ManagedIdentityCredential",{"type":59,"value":7635}," or ",{"type":53,"tag":121,"props":7637,"children":7639},{"className":7638},[],[7640],{"type":59,"value":7641},"WorkloadIdentityCredential",{"type":59,"value":7643}," for production",{"type":53,"tag":85,"props":7645,"children":7646},{},[7647,7652],{"type":53,"tag":75,"props":7648,"children":7649},{},[7650],{"type":59,"value":7651},"Always use parameterized queries",{"type":59,"value":7653}," — Prevents injection, improves plan caching",{"type":53,"tag":85,"props":7655,"children":7656},{},[7657,7662],{"type":53,"tag":75,"props":7658,"children":7659},{},[7660],{"type":59,"value":7661},"Specify partition key",{"type":59,"value":7663}," — Avoid cross-partition queries when possible",{"type":53,"tag":85,"props":7665,"children":7666},{},[7667,7672,7674],{"type":53,"tag":75,"props":7668,"children":7669},{},[7670],{"type":59,"value":7671},"Use bulk operations",{"type":59,"value":7673}," — For multiple writes, use ",{"type":53,"tag":121,"props":7675,"children":7677},{"className":7676},[],[7678],{"type":59,"value":4864},{"type":53,"tag":85,"props":7680,"children":7681},{},[7682,7687],{"type":53,"tag":75,"props":7683,"children":7684},{},[7685],{"type":59,"value":7686},"Handle 429 errors",{"type":59,"value":7688}," — Implement retry logic with exponential backoff",{"type":53,"tag":85,"props":7690,"children":7691},{},[7692,7697],{"type":53,"tag":75,"props":7693,"children":7694},{},[7695],{"type":59,"value":7696},"Use ETags for concurrency",{"type":59,"value":7698}," — Prevent lost updates in concurrent scenarios",{"type":53,"tag":85,"props":7700,"children":7701},{},[7702,7707,7709,7715],{"type":53,"tag":75,"props":7703,"children":7704},{},[7705],{"type":59,"value":7706},"Close client on shutdown",{"type":59,"value":7708}," — Call ",{"type":53,"tag":121,"props":7710,"children":7712},{"className":7711},[],[7713],{"type":59,"value":7714},"client.dispose()",{"type":59,"value":7716}," in cleanup",{"type":53,"tag":106,"props":7718,"children":7720},{"id":7719},"common-patterns",[7721],{"type":59,"value":7722},"Common Patterns",{"type":53,"tag":334,"props":7724,"children":7726},{"id":7725},"service-layer-pattern",[7727],{"type":59,"value":7728},"Service Layer Pattern",{"type":53,"tag":113,"props":7730,"children":7732},{"className":342,"code":7731,"language":18,"meta":118,"style":118},"export class ProductService {\n  private container: Container;\n\n  constructor(client: CosmosClient) {\n    this.container = client\n      .database(process.env.COSMOS_DATABASE!)\n      .container(process.env.COSMOS_CONTAINER!);\n  }\n\n  async getById(id: string, category: string): Promise\u003CProduct | null> {\n    try {\n      const { resource } = await this.container\n        .item(id, category)\n        .read\u003CProduct>();\n      return resource ?? null;\n    } catch (error) {\n      if (error instanceof ErrorResponse && error.code === 404) {\n        return null;\n      }\n      throw error;\n    }\n  }\n\n  async create(product: Omit\u003CProduct, \"id\">): Promise\u003CProduct> {\n    const item = { ...product, id: crypto.randomUUID() };\n    const { resource } = await this.container.items.create\u003CProduct>(item);\n    return resource!;\n  }\n\n  async findByCategory(category: string): Promise\u003CProduct[]> {\n    const querySpec: SqlQuerySpec = {\n      query: \"SELECT * FROM c WHERE c.partitionKey = @category\",\n      parameters: [{ name: \"@category\", value: category }],\n    };\n    const { resources } = await this.container.items\n      .query\u003CProduct>(querySpec)\n      .fetchAll();\n    return resources;\n  }\n}\n",[7733],{"type":53,"tag":121,"props":7734,"children":7735},{"__ignoreMap":118},[7736,7758,7783,7790,7823,7845,7890,7937,7944,7951,8034,8046,8084,8116,8147,8169,8196,8252,8264,8272,8288,8295,8302,8309,8388,8452,8531,8548,8555,8562,8620,8647,8676,8744,8752,8795,8831,8850,8865,8872],{"type":53,"tag":125,"props":7737,"children":7738},{"class":127,"line":128},[7739,7744,7749,7754],{"type":53,"tag":125,"props":7740,"children":7741},{"style":353},[7742],{"type":59,"value":7743},"export",{"type":53,"tag":125,"props":7745,"children":7746},{"style":469},[7747],{"type":59,"value":7748}," class",{"type":53,"tag":125,"props":7750,"children":7751},{"style":132},[7752],{"type":59,"value":7753}," ProductService",{"type":53,"tag":125,"props":7755,"children":7756},{"style":197},[7757],{"type":59,"value":1284},{"type":53,"tag":125,"props":7759,"children":7760},{"class":127,"line":228},[7761,7766,7770,7774,7779],{"type":53,"tag":125,"props":7762,"children":7763},{"style":469},[7764],{"type":59,"value":7765},"  private",{"type":53,"tag":125,"props":7767,"children":7768},{"style":504},[7769],{"type":59,"value":1562},{"type":53,"tag":125,"props":7771,"children":7772},{"style":197},[7773],{"type":59,"value":512},{"type":53,"tag":125,"props":7775,"children":7776},{"style":132},[7777],{"type":59,"value":7778}," Container",{"type":53,"tag":125,"props":7780,"children":7781},{"style":197},[7782],{"type":59,"value":395},{"type":53,"tag":125,"props":7784,"children":7785},{"class":127,"line":252},[7786],{"type":53,"tag":125,"props":7787,"children":7788},{"emptyLinePlaceholder":452},[7789],{"type":59,"value":455},{"type":53,"tag":125,"props":7791,"children":7792},{"class":127,"line":274},[7793,7798,7802,7807,7811,7815,7819],{"type":53,"tag":125,"props":7794,"children":7795},{"style":469},[7796],{"type":59,"value":7797},"  constructor",{"type":53,"tag":125,"props":7799,"children":7800},{"style":197},[7801],{"type":59,"value":496},{"type":53,"tag":125,"props":7803,"children":7804},{"style":4909},[7805],{"type":59,"value":7806},"client",{"type":53,"tag":125,"props":7808,"children":7809},{"style":197},[7810],{"type":59,"value":512},{"type":53,"tag":125,"props":7812,"children":7813},{"style":132},[7814],{"type":59,"value":366},{"type":53,"tag":125,"props":7816,"children":7817},{"style":197},[7818],{"type":59,"value":544},{"type":53,"tag":125,"props":7820,"children":7821},{"style":197},[7822],{"type":59,"value":1284},{"type":53,"tag":125,"props":7824,"children":7825},{"class":127,"line":284},[7826,7831,7836,7840],{"type":53,"tag":125,"props":7827,"children":7828},{"style":197},[7829],{"type":59,"value":7830},"    this.",{"type":53,"tag":125,"props":7832,"children":7833},{"style":191},[7834],{"type":59,"value":7835},"container",{"type":53,"tag":125,"props":7837,"children":7838},{"style":197},[7839],{"type":59,"value":1013},{"type":53,"tag":125,"props":7841,"children":7842},{"style":191},[7843],{"type":59,"value":7844}," client\n",{"type":53,"tag":125,"props":7846,"children":7847},{"class":127,"line":306},[7848,7853,7857,7861,7866,7870,7874,7878,7882,7886],{"type":53,"tag":125,"props":7849,"children":7850},{"style":197},[7851],{"type":59,"value":7852},"      .",{"type":53,"tag":125,"props":7854,"children":7855},{"style":489},[7856],{"type":59,"value":25},{"type":53,"tag":125,"props":7858,"children":7859},{"style":504},[7860],{"type":59,"value":496},{"type":53,"tag":125,"props":7862,"children":7863},{"style":191},[7864],{"type":59,"value":7865},"process",{"type":53,"tag":125,"props":7867,"children":7868},{"style":197},[7869],{"type":59,"value":639},{"type":53,"tag":125,"props":7871,"children":7872},{"style":191},[7873],{"type":59,"value":644},{"type":53,"tag":125,"props":7875,"children":7876},{"style":197},[7877],{"type":59,"value":639},{"type":53,"tag":125,"props":7879,"children":7880},{"style":191},[7881],{"type":59,"value":234},{"type":53,"tag":125,"props":7883,"children":7884},{"style":197},[7885],{"type":59,"value":945},{"type":53,"tag":125,"props":7887,"children":7888},{"style":504},[7889],{"type":59,"value":1911},{"type":53,"tag":125,"props":7891,"children":7892},{"class":127,"line":559},[7893,7897,7901,7905,7909,7913,7917,7921,7925,7929,7933],{"type":53,"tag":125,"props":7894,"children":7895},{"style":197},[7896],{"type":59,"value":7852},{"type":53,"tag":125,"props":7898,"children":7899},{"style":489},[7900],{"type":59,"value":7835},{"type":53,"tag":125,"props":7902,"children":7903},{"style":504},[7904],{"type":59,"value":496},{"type":53,"tag":125,"props":7906,"children":7907},{"style":191},[7908],{"type":59,"value":7865},{"type":53,"tag":125,"props":7910,"children":7911},{"style":197},[7912],{"type":59,"value":639},{"type":53,"tag":125,"props":7914,"children":7915},{"style":191},[7916],{"type":59,"value":644},{"type":53,"tag":125,"props":7918,"children":7919},{"style":197},[7920],{"type":59,"value":639},{"type":53,"tag":125,"props":7922,"children":7923},{"style":191},[7924],{"type":59,"value":258},{"type":53,"tag":125,"props":7926,"children":7927},{"style":197},[7928],{"type":59,"value":945},{"type":53,"tag":125,"props":7930,"children":7931},{"style":504},[7932],{"type":59,"value":544},{"type":53,"tag":125,"props":7934,"children":7935},{"style":197},[7936],{"type":59,"value":395},{"type":53,"tag":125,"props":7938,"children":7939},{"class":127,"line":568},[7940],{"type":53,"tag":125,"props":7941,"children":7942},{"style":197},[7943],{"type":59,"value":5169},{"type":53,"tag":125,"props":7945,"children":7946},{"class":127,"line":577},[7947],{"type":53,"tag":125,"props":7948,"children":7949},{"emptyLinePlaceholder":452},[7950],{"type":59,"value":455},{"type":53,"tag":125,"props":7952,"children":7953},{"class":127,"line":585},[7954,7959,7964,7968,7973,7977,7981,7985,7990,7994,7998,8003,8008,8012,8016,8021,8026,8030],{"type":53,"tag":125,"props":7955,"children":7956},{"style":469},[7957],{"type":59,"value":7958},"  async",{"type":53,"tag":125,"props":7960,"children":7961},{"style":504},[7962],{"type":59,"value":7963}," getById",{"type":53,"tag":125,"props":7965,"children":7966},{"style":197},[7967],{"type":59,"value":496},{"type":53,"tag":125,"props":7969,"children":7970},{"style":4909},[7971],{"type":59,"value":7972},"id",{"type":53,"tag":125,"props":7974,"children":7975},{"style":197},[7976],{"type":59,"value":512},{"type":53,"tag":125,"props":7978,"children":7979},{"style":132},[7980],{"type":59,"value":1300},{"type":53,"tag":125,"props":7982,"children":7983},{"style":197},[7984],{"type":59,"value":416},{"type":53,"tag":125,"props":7986,"children":7987},{"style":4909},[7988],{"type":59,"value":7989}," category",{"type":53,"tag":125,"props":7991,"children":7992},{"style":197},[7993],{"type":59,"value":512},{"type":53,"tag":125,"props":7995,"children":7996},{"style":132},[7997],{"type":59,"value":1300},{"type":53,"tag":125,"props":7999,"children":8000},{"style":197},[8001],{"type":59,"value":8002},"):",{"type":53,"tag":125,"props":8004,"children":8005},{"style":132},[8006],{"type":59,"value":8007}," Promise",{"type":53,"tag":125,"props":8009,"children":8010},{"style":197},[8011],{"type":59,"value":210},{"type":53,"tag":125,"props":8013,"children":8014},{"style":132},[8015],{"type":59,"value":1589},{"type":53,"tag":125,"props":8017,"children":8018},{"style":197},[8019],{"type":59,"value":8020}," |",{"type":53,"tag":125,"props":8022,"children":8023},{"style":132},[8024],{"type":59,"value":8025}," null",{"type":53,"tag":125,"props":8027,"children":8028},{"style":197},[8029],{"type":59,"value":220},{"type":53,"tag":125,"props":8031,"children":8032},{"style":197},[8033],{"type":59,"value":1284},{"type":53,"tag":125,"props":8035,"children":8036},{"class":127,"line":619},[8037,8042],{"type":53,"tag":125,"props":8038,"children":8039},{"style":353},[8040],{"type":59,"value":8041},"    try",{"type":53,"tag":125,"props":8043,"children":8044},{"style":197},[8045],{"type":59,"value":1284},{"type":53,"tag":125,"props":8047,"children":8048},{"class":127,"line":660},[8049,8054,8058,8062,8066,8070,8074,8079],{"type":53,"tag":125,"props":8050,"children":8051},{"style":469},[8052],{"type":59,"value":8053},"      const",{"type":53,"tag":125,"props":8055,"children":8056},{"style":197},[8057],{"type":59,"value":361},{"type":53,"tag":125,"props":8059,"children":8060},{"style":191},[8061],{"type":59,"value":1838},{"type":53,"tag":125,"props":8063,"children":8064},{"style":197},[8065],{"type":59,"value":371},{"type":53,"tag":125,"props":8067,"children":8068},{"style":197},[8069],{"type":59,"value":1013},{"type":53,"tag":125,"props":8071,"children":8072},{"style":353},[8073],{"type":59,"value":1018},{"type":53,"tag":125,"props":8075,"children":8076},{"style":197},[8077],{"type":59,"value":8078}," this.",{"type":53,"tag":125,"props":8080,"children":8081},{"style":191},[8082],{"type":59,"value":8083},"container\n",{"type":53,"tag":125,"props":8085,"children":8086},{"class":127,"line":683},[8087,8092,8096,8100,8104,8108,8112],{"type":53,"tag":125,"props":8088,"children":8089},{"style":197},[8090],{"type":59,"value":8091},"        .",{"type":53,"tag":125,"props":8093,"children":8094},{"style":489},[8095],{"type":59,"value":1660},{"type":53,"tag":125,"props":8097,"children":8098},{"style":504},[8099],{"type":59,"value":496},{"type":53,"tag":125,"props":8101,"children":8102},{"style":191},[8103],{"type":59,"value":7972},{"type":53,"tag":125,"props":8105,"children":8106},{"style":197},[8107],{"type":59,"value":416},{"type":53,"tag":125,"props":8109,"children":8110},{"style":191},[8111],{"type":59,"value":7989},{"type":53,"tag":125,"props":8113,"children":8114},{"style":504},[8115],{"type":59,"value":1911},{"type":53,"tag":125,"props":8117,"children":8118},{"class":127,"line":1523},[8119,8123,8127,8131,8135,8139,8143],{"type":53,"tag":125,"props":8120,"children":8121},{"style":197},[8122],{"type":59,"value":8091},{"type":53,"tag":125,"props":8124,"children":8125},{"style":489},[8126],{"type":59,"value":1714},{"type":53,"tag":125,"props":8128,"children":8129},{"style":197},[8130],{"type":59,"value":210},{"type":53,"tag":125,"props":8132,"children":8133},{"style":132},[8134],{"type":59,"value":1589},{"type":53,"tag":125,"props":8136,"children":8137},{"style":197},[8138],{"type":59,"value":220},{"type":53,"tag":125,"props":8140,"children":8141},{"style":504},[8142],{"type":59,"value":1731},{"type":53,"tag":125,"props":8144,"children":8145},{"style":197},[8146],{"type":59,"value":395},{"type":53,"tag":125,"props":8148,"children":8149},{"class":127,"line":1531},[8150,8155,8159,8164],{"type":53,"tag":125,"props":8151,"children":8152},{"style":353},[8153],{"type":59,"value":8154},"      return",{"type":53,"tag":125,"props":8156,"children":8157},{"style":191},[8158],{"type":59,"value":1838},{"type":53,"tag":125,"props":8160,"children":8161},{"style":197},[8162],{"type":59,"value":8163}," ??",{"type":53,"tag":125,"props":8165,"children":8166},{"style":197},[8167],{"type":59,"value":8168}," null;\n",{"type":53,"tag":125,"props":8170,"children":8171},{"class":127,"line":4273},[8172,8176,8180,8184,8188,8192],{"type":53,"tag":125,"props":8173,"children":8174},{"style":197},[8175],{"type":59,"value":7095},{"type":53,"tag":125,"props":8177,"children":8178},{"style":353},[8179],{"type":59,"value":6224},{"type":53,"tag":125,"props":8181,"children":8182},{"style":504},[8183],{"type":59,"value":4948},{"type":53,"tag":125,"props":8185,"children":8186},{"style":191},[8187],{"type":59,"value":5102},{"type":53,"tag":125,"props":8189,"children":8190},{"style":504},[8191],{"type":59,"value":1697},{"type":53,"tag":125,"props":8193,"children":8194},{"style":197},[8195],{"type":59,"value":616},{"type":53,"tag":125,"props":8197,"children":8198},{"class":127,"line":4281},[8199,8204,8208,8212,8216,8220,8224,8228,8232,8236,8240,8244,8248],{"type":53,"tag":125,"props":8200,"children":8201},{"style":353},[8202],{"type":59,"value":8203},"      if",{"type":53,"tag":125,"props":8205,"children":8206},{"style":504},[8207],{"type":59,"value":4948},{"type":53,"tag":125,"props":8209,"children":8210},{"style":191},[8211],{"type":59,"value":5102},{"type":53,"tag":125,"props":8213,"children":8214},{"style":197},[8215],{"type":59,"value":6253},{"type":53,"tag":125,"props":8217,"children":8218},{"style":132},[8219],{"type":59,"value":6076},{"type":53,"tag":125,"props":8221,"children":8222},{"style":197},[8223],{"type":59,"value":4976},{"type":53,"tag":125,"props":8225,"children":8226},{"style":191},[8227],{"type":59,"value":6559},{"type":53,"tag":125,"props":8229,"children":8230},{"style":197},[8231],{"type":59,"value":639},{"type":53,"tag":125,"props":8233,"children":8234},{"style":191},[8235],{"type":59,"value":121},{"type":53,"tag":125,"props":8237,"children":8238},{"style":197},[8239],{"type":59,"value":7175},{"type":53,"tag":125,"props":8241,"children":8242},{"style":1505},[8243],{"type":59,"value":6310},{"type":53,"tag":125,"props":8245,"children":8246},{"style":504},[8247],{"type":59,"value":1697},{"type":53,"tag":125,"props":8249,"children":8250},{"style":197},[8251],{"type":59,"value":616},{"type":53,"tag":125,"props":8253,"children":8254},{"class":127,"line":4289},[8255,8260],{"type":53,"tag":125,"props":8256,"children":8257},{"style":353},[8258],{"type":59,"value":8259},"        return",{"type":53,"tag":125,"props":8261,"children":8262},{"style":197},[8263],{"type":59,"value":8168},{"type":53,"tag":125,"props":8265,"children":8266},{"class":127,"line":4318},[8267],{"type":53,"tag":125,"props":8268,"children":8269},{"style":197},[8270],{"type":59,"value":8271},"      }\n",{"type":53,"tag":125,"props":8273,"children":8274},{"class":127,"line":4347},[8275,8280,8284],{"type":53,"tag":125,"props":8276,"children":8277},{"style":353},[8278],{"type":59,"value":8279},"      throw",{"type":53,"tag":125,"props":8281,"children":8282},{"style":191},[8283],{"type":59,"value":6559},{"type":53,"tag":125,"props":8285,"children":8286},{"style":197},[8287],{"type":59,"value":395},{"type":53,"tag":125,"props":8289,"children":8290},{"class":127,"line":4375},[8291],{"type":53,"tag":125,"props":8292,"children":8293},{"style":197},[8294],{"type":59,"value":6689},{"type":53,"tag":125,"props":8296,"children":8297},{"class":127,"line":4464},[8298],{"type":53,"tag":125,"props":8299,"children":8300},{"style":197},[8301],{"type":59,"value":5169},{"type":53,"tag":125,"props":8303,"children":8304},{"class":127,"line":4472},[8305],{"type":53,"tag":125,"props":8306,"children":8307},{"emptyLinePlaceholder":452},[8308],{"type":59,"value":455},{"type":53,"tag":125,"props":8310,"children":8311},{"class":127,"line":4480},[8312,8316,8321,8325,8330,8334,8339,8343,8347,8351,8355,8359,8363,8368,8372,8376,8380,8384],{"type":53,"tag":125,"props":8313,"children":8314},{"style":469},[8315],{"type":59,"value":7958},{"type":53,"tag":125,"props":8317,"children":8318},{"style":504},[8319],{"type":59,"value":8320}," create",{"type":53,"tag":125,"props":8322,"children":8323},{"style":197},[8324],{"type":59,"value":496},{"type":53,"tag":125,"props":8326,"children":8327},{"style":4909},[8328],{"type":59,"value":8329},"product",{"type":53,"tag":125,"props":8331,"children":8332},{"style":197},[8333],{"type":59,"value":512},{"type":53,"tag":125,"props":8335,"children":8336},{"style":132},[8337],{"type":59,"value":8338}," Omit",{"type":53,"tag":125,"props":8340,"children":8341},{"style":197},[8342],{"type":59,"value":210},{"type":53,"tag":125,"props":8344,"children":8345},{"style":132},[8346],{"type":59,"value":1589},{"type":53,"tag":125,"props":8348,"children":8349},{"style":197},[8350],{"type":59,"value":416},{"type":53,"tag":125,"props":8352,"children":8353},{"style":197},[8354],{"type":59,"value":381},{"type":53,"tag":125,"props":8356,"children":8357},{"style":138},[8358],{"type":59,"value":7972},{"type":53,"tag":125,"props":8360,"children":8361},{"style":197},[8362],{"type":59,"value":390},{"type":53,"tag":125,"props":8364,"children":8365},{"style":197},[8366],{"type":59,"value":8367},">):",{"type":53,"tag":125,"props":8369,"children":8370},{"style":132},[8371],{"type":59,"value":8007},{"type":53,"tag":125,"props":8373,"children":8374},{"style":197},[8375],{"type":59,"value":210},{"type":53,"tag":125,"props":8377,"children":8378},{"style":132},[8379],{"type":59,"value":1589},{"type":53,"tag":125,"props":8381,"children":8382},{"style":197},[8383],{"type":59,"value":220},{"type":53,"tag":125,"props":8385,"children":8386},{"style":197},[8387],{"type":59,"value":1284},{"type":53,"tag":125,"props":8389,"children":8390},{"class":127,"line":4509},[8391,8396,8400,8404,8408,8413,8417,8421,8425,8429,8434,8438,8443,8448],{"type":53,"tag":125,"props":8392,"children":8393},{"style":469},[8394],{"type":59,"value":8395},"    const",{"type":53,"tag":125,"props":8397,"children":8398},{"style":191},[8399],{"type":59,"value":1391},{"type":53,"tag":125,"props":8401,"children":8402},{"style":197},[8403],{"type":59,"value":1013},{"type":53,"tag":125,"props":8405,"children":8406},{"style":197},[8407],{"type":59,"value":361},{"type":53,"tag":125,"props":8409,"children":8410},{"style":197},[8411],{"type":59,"value":8412}," ...",{"type":53,"tag":125,"props":8414,"children":8415},{"style":191},[8416],{"type":59,"value":8329},{"type":53,"tag":125,"props":8418,"children":8419},{"style":197},[8420],{"type":59,"value":416},{"type":53,"tag":125,"props":8422,"children":8423},{"style":504},[8424],{"type":59,"value":3966},{"type":53,"tag":125,"props":8426,"children":8427},{"style":197},[8428],{"type":59,"value":512},{"type":53,"tag":125,"props":8430,"children":8431},{"style":191},[8432],{"type":59,"value":8433}," crypto",{"type":53,"tag":125,"props":8435,"children":8436},{"style":197},[8437],{"type":59,"value":639},{"type":53,"tag":125,"props":8439,"children":8440},{"style":489},[8441],{"type":59,"value":8442},"randomUUID",{"type":53,"tag":125,"props":8444,"children":8445},{"style":504},[8446],{"type":59,"value":8447},"() ",{"type":53,"tag":125,"props":8449,"children":8450},{"style":197},[8451],{"type":59,"value":1520},{"type":53,"tag":125,"props":8453,"children":8454},{"class":127,"line":4538},[8455,8459,8463,8467,8471,8475,8479,8483,8487,8491,8495,8499,8503,8507,8511,8515,8519,8523,8527],{"type":53,"tag":125,"props":8456,"children":8457},{"style":469},[8458],{"type":59,"value":8395},{"type":53,"tag":125,"props":8460,"children":8461},{"style":197},[8462],{"type":59,"value":361},{"type":53,"tag":125,"props":8464,"children":8465},{"style":191},[8466],{"type":59,"value":1838},{"type":53,"tag":125,"props":8468,"children":8469},{"style":197},[8470],{"type":59,"value":371},{"type":53,"tag":125,"props":8472,"children":8473},{"style":197},[8474],{"type":59,"value":1013},{"type":53,"tag":125,"props":8476,"children":8477},{"style":353},[8478],{"type":59,"value":1018},{"type":53,"tag":125,"props":8480,"children":8481},{"style":197},[8482],{"type":59,"value":8078},{"type":53,"tag":125,"props":8484,"children":8485},{"style":191},[8486],{"type":59,"value":7835},{"type":53,"tag":125,"props":8488,"children":8489},{"style":197},[8490],{"type":59,"value":639},{"type":53,"tag":125,"props":8492,"children":8493},{"style":191},[8494],{"type":59,"value":1571},{"type":53,"tag":125,"props":8496,"children":8497},{"style":197},[8498],{"type":59,"value":639},{"type":53,"tag":125,"props":8500,"children":8501},{"style":489},[8502],{"type":59,"value":1580},{"type":53,"tag":125,"props":8504,"children":8505},{"style":197},[8506],{"type":59,"value":210},{"type":53,"tag":125,"props":8508,"children":8509},{"style":132},[8510],{"type":59,"value":1589},{"type":53,"tag":125,"props":8512,"children":8513},{"style":197},[8514],{"type":59,"value":220},{"type":53,"tag":125,"props":8516,"children":8517},{"style":504},[8518],{"type":59,"value":496},{"type":53,"tag":125,"props":8520,"children":8521},{"style":191},[8522],{"type":59,"value":1660},{"type":53,"tag":125,"props":8524,"children":8525},{"style":504},[8526],{"type":59,"value":544},{"type":53,"tag":125,"props":8528,"children":8529},{"style":197},[8530],{"type":59,"value":395},{"type":53,"tag":125,"props":8532,"children":8533},{"class":127,"line":4567},[8534,8539,8543],{"type":53,"tag":125,"props":8535,"children":8536},{"style":353},[8537],{"type":59,"value":8538},"    return",{"type":53,"tag":125,"props":8540,"children":8541},{"style":191},[8542],{"type":59,"value":1838},{"type":53,"tag":125,"props":8544,"children":8545},{"style":197},[8546],{"type":59,"value":8547},"!;\n",{"type":53,"tag":125,"props":8549,"children":8550},{"class":127,"line":4575},[8551],{"type":53,"tag":125,"props":8552,"children":8553},{"style":197},[8554],{"type":59,"value":5169},{"type":53,"tag":125,"props":8556,"children":8557},{"class":127,"line":4583},[8558],{"type":53,"tag":125,"props":8559,"children":8560},{"emptyLinePlaceholder":452},[8561],{"type":59,"value":455},{"type":53,"tag":125,"props":8563,"children":8564},{"class":127,"line":4612},[8565,8569,8574,8578,8583,8587,8591,8595,8599,8603,8607,8612,8616],{"type":53,"tag":125,"props":8566,"children":8567},{"style":469},[8568],{"type":59,"value":7958},{"type":53,"tag":125,"props":8570,"children":8571},{"style":504},[8572],{"type":59,"value":8573}," findByCategory",{"type":53,"tag":125,"props":8575,"children":8576},{"style":197},[8577],{"type":59,"value":496},{"type":53,"tag":125,"props":8579,"children":8580},{"style":4909},[8581],{"type":59,"value":8582},"category",{"type":53,"tag":125,"props":8584,"children":8585},{"style":197},[8586],{"type":59,"value":512},{"type":53,"tag":125,"props":8588,"children":8589},{"style":132},[8590],{"type":59,"value":1300},{"type":53,"tag":125,"props":8592,"children":8593},{"style":197},[8594],{"type":59,"value":8002},{"type":53,"tag":125,"props":8596,"children":8597},{"style":132},[8598],{"type":59,"value":8007},{"type":53,"tag":125,"props":8600,"children":8601},{"style":197},[8602],{"type":59,"value":210},{"type":53,"tag":125,"props":8604,"children":8605},{"style":132},[8606],{"type":59,"value":1589},{"type":53,"tag":125,"props":8608,"children":8609},{"style":191},[8610],{"type":59,"value":8611},"[]",{"type":53,"tag":125,"props":8613,"children":8614},{"style":197},[8615],{"type":59,"value":220},{"type":53,"tag":125,"props":8617,"children":8618},{"style":197},[8619],{"type":59,"value":1284},{"type":53,"tag":125,"props":8621,"children":8622},{"class":127,"line":4641},[8623,8627,8631,8635,8639,8643],{"type":53,"tag":125,"props":8624,"children":8625},{"style":469},[8626],{"type":59,"value":8395},{"type":53,"tag":125,"props":8628,"children":8629},{"style":191},[8630],{"type":59,"value":3072},{"type":53,"tag":125,"props":8632,"children":8633},{"style":197},[8634],{"type":59,"value":512},{"type":53,"tag":125,"props":8636,"children":8637},{"style":132},[8638],{"type":59,"value":3029},{"type":53,"tag":125,"props":8640,"children":8641},{"style":197},[8642],{"type":59,"value":1013},{"type":53,"tag":125,"props":8644,"children":8645},{"style":197},[8646],{"type":59,"value":1284},{"type":53,"tag":125,"props":8648,"children":8649},{"class":127,"line":4669},[8650,8655,8659,8663,8668,8672],{"type":53,"tag":125,"props":8651,"children":8652},{"style":504},[8653],{"type":59,"value":8654},"      query",{"type":53,"tag":125,"props":8656,"children":8657},{"style":197},[8658],{"type":59,"value":512},{"type":53,"tag":125,"props":8660,"children":8661},{"style":197},[8662],{"type":59,"value":381},{"type":53,"tag":125,"props":8664,"children":8665},{"style":138},[8666],{"type":59,"value":8667},"SELECT * FROM c WHERE c.partitionKey = @category",{"type":53,"tag":125,"props":8669,"children":8670},{"style":197},[8671],{"type":59,"value":390},{"type":53,"tag":125,"props":8673,"children":8674},{"style":197},[8675],{"type":59,"value":680},{"type":53,"tag":125,"props":8677,"children":8678},{"class":127,"line":4685},[8679,8684,8688,8692,8696,8700,8704,8708,8712,8716,8720,8724,8728,8732,8736,8740],{"type":53,"tag":125,"props":8680,"children":8681},{"style":504},[8682],{"type":59,"value":8683},"      parameters",{"type":53,"tag":125,"props":8685,"children":8686},{"style":197},[8687],{"type":59,"value":512},{"type":53,"tag":125,"props":8689,"children":8690},{"style":504},[8691],{"type":59,"value":517},{"type":53,"tag":125,"props":8693,"children":8694},{"style":197},[8695],{"type":59,"value":501},{"type":53,"tag":125,"props":8697,"children":8698},{"style":504},[8699],{"type":59,"value":3146},{"type":53,"tag":125,"props":8701,"children":8702},{"style":197},[8703],{"type":59,"value":512},{"type":53,"tag":125,"props":8705,"children":8706},{"style":197},[8707],{"type":59,"value":381},{"type":53,"tag":125,"props":8709,"children":8710},{"style":138},[8711],{"type":59,"value":3159},{"type":53,"tag":125,"props":8713,"children":8714},{"style":197},[8715],{"type":59,"value":390},{"type":53,"tag":125,"props":8717,"children":8718},{"style":197},[8719],{"type":59,"value":416},{"type":53,"tag":125,"props":8721,"children":8722},{"style":504},[8723],{"type":59,"value":2600},{"type":53,"tag":125,"props":8725,"children":8726},{"style":197},[8727],{"type":59,"value":512},{"type":53,"tag":125,"props":8729,"children":8730},{"style":191},[8731],{"type":59,"value":7989},{"type":53,"tag":125,"props":8733,"children":8734},{"style":197},[8735],{"type":59,"value":371},{"type":53,"tag":125,"props":8737,"children":8738},{"style":504},[8739],{"type":59,"value":534},{"type":53,"tag":125,"props":8741,"children":8742},{"style":197},[8743],{"type":59,"value":680},{"type":53,"tag":125,"props":8745,"children":8746},{"class":127,"line":4788},[8747],{"type":53,"tag":125,"props":8748,"children":8749},{"style":197},[8750],{"type":59,"value":8751},"    };\n",{"type":53,"tag":125,"props":8753,"children":8754},{"class":127,"line":4797},[8755,8759,8763,8767,8771,8775,8779,8783,8787,8791],{"type":53,"tag":125,"props":8756,"children":8757},{"style":469},[8758],{"type":59,"value":8395},{"type":53,"tag":125,"props":8760,"children":8761},{"style":197},[8762],{"type":59,"value":361},{"type":53,"tag":125,"props":8764,"children":8765},{"style":191},[8766],{"type":59,"value":3521},{"type":53,"tag":125,"props":8768,"children":8769},{"style":197},[8770],{"type":59,"value":371},{"type":53,"tag":125,"props":8772,"children":8773},{"style":197},[8774],{"type":59,"value":1013},{"type":53,"tag":125,"props":8776,"children":8777},{"style":353},[8778],{"type":59,"value":1018},{"type":53,"tag":125,"props":8780,"children":8781},{"style":197},[8782],{"type":59,"value":8078},{"type":53,"tag":125,"props":8784,"children":8785},{"style":191},[8786],{"type":59,"value":7835},{"type":53,"tag":125,"props":8788,"children":8789},{"style":197},[8790],{"type":59,"value":639},{"type":53,"tag":125,"props":8792,"children":8793},{"style":191},[8794],{"type":59,"value":2935},{"type":53,"tag":125,"props":8796,"children":8797},{"class":127,"line":4805},[8798,8802,8806,8810,8814,8818,8822,8827],{"type":53,"tag":125,"props":8799,"children":8800},{"style":197},[8801],{"type":59,"value":7852},{"type":53,"tag":125,"props":8803,"children":8804},{"style":489},[8805],{"type":59,"value":2947},{"type":53,"tag":125,"props":8807,"children":8808},{"style":197},[8809],{"type":59,"value":210},{"type":53,"tag":125,"props":8811,"children":8812},{"style":132},[8813],{"type":59,"value":1589},{"type":53,"tag":125,"props":8815,"children":8816},{"style":197},[8817],{"type":59,"value":220},{"type":53,"tag":125,"props":8819,"children":8820},{"style":504},[8821],{"type":59,"value":496},{"type":53,"tag":125,"props":8823,"children":8824},{"style":191},[8825],{"type":59,"value":8826},"querySpec",{"type":53,"tag":125,"props":8828,"children":8829},{"style":504},[8830],{"type":59,"value":1911},{"type":53,"tag":125,"props":8832,"children":8833},{"class":127,"line":4817},[8834,8838,8842,8846],{"type":53,"tag":125,"props":8835,"children":8836},{"style":197},[8837],{"type":59,"value":7852},{"type":53,"tag":125,"props":8839,"children":8840},{"style":489},[8841],{"type":59,"value":2992},{"type":53,"tag":125,"props":8843,"children":8844},{"style":504},[8845],{"type":59,"value":1731},{"type":53,"tag":125,"props":8847,"children":8848},{"style":197},[8849],{"type":59,"value":395},{"type":53,"tag":125,"props":8851,"children":8852},{"class":127,"line":4825},[8853,8857,8861],{"type":53,"tag":125,"props":8854,"children":8855},{"style":353},[8856],{"type":59,"value":8538},{"type":53,"tag":125,"props":8858,"children":8859},{"style":191},[8860],{"type":59,"value":3521},{"type":53,"tag":125,"props":8862,"children":8863},{"style":197},[8864],{"type":59,"value":395},{"type":53,"tag":125,"props":8866,"children":8867},{"class":127,"line":4875},[8868],{"type":53,"tag":125,"props":8869,"children":8870},{"style":197},[8871],{"type":59,"value":5169},{"type":53,"tag":125,"props":8873,"children":8874},{"class":127,"line":4883},[8875],{"type":53,"tag":125,"props":8876,"children":8877},{"style":197},[8878],{"type":59,"value":1372},{"type":53,"tag":106,"props":8880,"children":8882},{"id":8881},"related-sdks",[8883],{"type":59,"value":8884},"Related SDKs",{"type":53,"tag":8886,"props":8887,"children":8888},"table",{},[8889,8913],{"type":53,"tag":8890,"props":8891,"children":8892},"thead",{},[8893],{"type":53,"tag":8894,"props":8895,"children":8896},"tr",{},[8897,8903,8908],{"type":53,"tag":8898,"props":8899,"children":8900},"th",{},[8901],{"type":59,"value":8902},"SDK",{"type":53,"tag":8898,"props":8904,"children":8905},{},[8906],{"type":59,"value":8907},"Purpose",{"type":53,"tag":8898,"props":8909,"children":8910},{},[8911],{"type":59,"value":8912},"Install",{"type":53,"tag":8914,"props":8915,"children":8916},"tbody",{},[8917,8943,8969],{"type":53,"tag":8894,"props":8918,"children":8919},{},[8920,8929,8934],{"type":53,"tag":8921,"props":8922,"children":8923},"td",{},[8924],{"type":53,"tag":121,"props":8925,"children":8927},{"className":8926},[],[8928],{"type":59,"value":48},{"type":53,"tag":8921,"props":8930,"children":8931},{},[8932],{"type":59,"value":8933},"Data plane (this SDK)",{"type":53,"tag":8921,"props":8935,"children":8936},{},[8937],{"type":53,"tag":121,"props":8938,"children":8940},{"className":8939},[],[8941],{"type":59,"value":8942},"npm install @azure\u002Fcosmos",{"type":53,"tag":8894,"props":8944,"children":8945},{},[8946,8955,8960],{"type":53,"tag":8921,"props":8947,"children":8948},{},[8949],{"type":53,"tag":121,"props":8950,"children":8952},{"className":8951},[],[8953],{"type":59,"value":8954},"@azure\u002Farm-cosmosdb",{"type":53,"tag":8921,"props":8956,"children":8957},{},[8958],{"type":59,"value":8959},"Management plane (ARM)",{"type":53,"tag":8921,"props":8961,"children":8962},{},[8963],{"type":53,"tag":121,"props":8964,"children":8966},{"className":8965},[],[8967],{"type":59,"value":8968},"npm install @azure\u002Farm-cosmosdb",{"type":53,"tag":8894,"props":8970,"children":8971},{},[8972,8980,8984],{"type":53,"tag":8921,"props":8973,"children":8974},{},[8975],{"type":53,"tag":121,"props":8976,"children":8978},{"className":8977},[],[8979],{"type":59,"value":438},{"type":53,"tag":8921,"props":8981,"children":8982},{},[8983],{"type":59,"value":332},{"type":53,"tag":8921,"props":8985,"children":8986},{},[8987],{"type":53,"tag":121,"props":8988,"children":8990},{"className":8989},[],[8991],{"type":59,"value":8992},"npm install @azure\u002Fidentity",{"type":53,"tag":8994,"props":8995,"children":8996},"style",{},[8997],{"type":59,"value":8998},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":9000,"total":4825},[9001,9018,9039,9054,9071,9082,9095],{"slug":9002,"name":9002,"fn":9003,"description":9004,"org":9005,"tags":9006,"stars":26,"repoUrl":27,"updatedAt":9017},"azure-ai-agents-persistent-dotnet","build AI agents with Azure .NET SDK","Azure AI Agents Persistent SDK for .NET. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Use for agent CRUD, conversation threads, streaming responses, function calling, file search, and code interpreter. Triggers: \"PersistentAgentsClient\", \"persistent agents\", \"agent threads\", \"agent runs\", \"streaming agents\", \"function calling agents .NET\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9007,9010,9012,9014],{"name":9008,"slug":9009,"type":15},".NET","net",{"name":9011,"slug":33,"type":15},"Agents",{"name":9013,"slug":34,"type":15},"Azure",{"name":9015,"slug":9016,"type":15},"LLM","llm","2026-07-03T16:32:10.297433",{"slug":9019,"name":9019,"fn":9020,"description":9021,"org":9022,"tags":9023,"stars":26,"repoUrl":27,"updatedAt":9038},"azure-ai-anomalydetector-java","build anomaly detection applications with Java","Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate\u002Fmultivariate anomaly detection, time-series analysis, or AI-powered monitoring.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9024,9027,9028,9031,9034,9035],{"name":9025,"slug":9026,"type":15},"Analytics","analytics",{"name":9013,"slug":34,"type":15},{"name":9029,"slug":9030,"type":15},"Data Analysis","data-analysis",{"name":9032,"slug":9033,"type":15},"Java","java",{"name":9,"slug":8,"type":15},{"name":9036,"slug":9037,"type":15},"Monitoring","monitoring","2026-05-13T06:14:16.261754",{"slug":9040,"name":9040,"fn":9041,"description":9042,"org":9043,"tags":9044,"stars":26,"repoUrl":27,"updatedAt":9053},"azure-ai-contentsafety-java","build content moderation applications with Azure AI","Build content moderation applications with Azure AI Content Safety SDK for Java. Use when implementing text\u002Fimage analysis, blocklist management, or harm detection for hate, violence, sexual content, and self-harm.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9045,9048,9049,9050],{"name":9046,"slug":9047,"type":15},"AI Infrastructure","ai-infrastructure",{"name":9013,"slug":34,"type":15},{"name":9032,"slug":9033,"type":15},{"name":9051,"slug":9052,"type":15},"Security","security","2026-07-07T06:53:31.293235",{"slug":9055,"name":9055,"fn":9056,"description":9057,"org":9058,"tags":9059,"stars":26,"repoUrl":27,"updatedAt":9070},"azure-ai-contentsafety-py","detect harmful content with Azure AI Content Safety","Azure AI Content Safety SDK for Python. Use for detecting harmful content in text and images with multi-severity classification.\nTriggers: \"azure-ai-contentsafety\", \"ContentSafetyClient\", \"content moderation\", \"harmful content\", \"text analysis\", \"image analysis\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9060,9061,9064,9065,9066,9069],{"name":9013,"slug":34,"type":15},{"name":9062,"slug":9063,"type":15},"Compliance","compliance",{"name":9015,"slug":9016,"type":15},{"name":9,"slug":8,"type":15},{"name":9067,"slug":9068,"type":15},"Python","python",{"name":9051,"slug":9052,"type":15},"2026-07-18T05:14:23.017504",{"slug":9072,"name":9072,"fn":9073,"description":9074,"org":9075,"tags":9076,"stars":26,"repoUrl":27,"updatedAt":9081},"azure-ai-language-conversations-py","implement conversational language understanding with Python","Implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations Python SDK. Use when working with ConversationAnalysisClient to analyze conversation intent and entities, building NLP features, or integrating language understanding into applications.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9077,9078,9079,9080],{"name":9025,"slug":9026,"type":15},{"name":9013,"slug":34,"type":15},{"name":9015,"slug":9016,"type":15},{"name":9067,"slug":9068,"type":15},"2026-07-31T05:54:29.068751",{"slug":9083,"name":9083,"fn":9084,"description":9085,"org":9086,"tags":9087,"stars":26,"repoUrl":27,"updatedAt":9094},"azure-ai-translation-text-py","translate text using Azure AI services","Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.\nTriggers: \"text translation\", \"translator\", \"translate text\", \"transliterate\", \"TextTranslationClient\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9088,9091,9092,9093],{"name":9089,"slug":9090,"type":15},"API Development","api-development",{"name":9013,"slug":34,"type":15},{"name":9,"slug":8,"type":15},{"name":9067,"slug":9068,"type":15},"2026-07-18T05:14:16.988376",{"slug":9096,"name":9096,"fn":9097,"description":9098,"org":9099,"tags":9100,"stars":26,"repoUrl":27,"updatedAt":9109},"azure-ai-vision-imageanalysis-py","analyze images with Azure AI Vision","Azure AI Vision Image Analysis SDK for captions, tags, objects, OCR, people detection, and smart cropping. Use for computer vision and image understanding tasks.\nTriggers: \"image analysis\", \"computer vision\", \"OCR\", \"object detection\", \"ImageAnalysisClient\", \"image caption\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9101,9102,9105,9108],{"name":9013,"slug":34,"type":15},{"name":9103,"slug":9104,"type":15},"Computer Vision","computer-vision",{"name":9106,"slug":9107,"type":15},"Images","images",{"name":9067,"slug":9068,"type":15},"2026-07-18T05:14:18.007737",{"items":9111,"total":9234},[9112,9134,9141,9150,9157,9166,9173,9180,9187,9202,9214,9222],{"slug":9113,"name":9113,"fn":9114,"description":9115,"org":9116,"tags":9117,"stars":9131,"repoUrl":9132,"updatedAt":9133},"rushstack-best-practices","manage Rush monorepos with best practices","Provides best practices and guidance for working with Rush monorepos. Use when the user is working in a Rush-based repository, asks about Rush commands (install, update, build, rebuild), needs help with project selection, dependency management, build caching, subspace configuration, or troubleshooting Rush-specific issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9118,9121,9124,9125,9128],{"name":9119,"slug":9120,"type":15},"Engineering","engineering",{"name":9122,"slug":9123,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},{"name":9126,"slug":9127,"type":15},"Project Management","project-management",{"name":9129,"slug":9130,"type":15},"Rush","rush",6484,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Frushstack","2026-04-06T18:34:44.965032",{"slug":9002,"name":9002,"fn":9003,"description":9004,"org":9135,"tags":9136,"stars":26,"repoUrl":27,"updatedAt":9017},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9137,9138,9139,9140],{"name":9008,"slug":9009,"type":15},{"name":9011,"slug":33,"type":15},{"name":9013,"slug":34,"type":15},{"name":9015,"slug":9016,"type":15},{"slug":9019,"name":9019,"fn":9020,"description":9021,"org":9142,"tags":9143,"stars":26,"repoUrl":27,"updatedAt":9038},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9144,9145,9146,9147,9148,9149],{"name":9025,"slug":9026,"type":15},{"name":9013,"slug":34,"type":15},{"name":9029,"slug":9030,"type":15},{"name":9032,"slug":9033,"type":15},{"name":9,"slug":8,"type":15},{"name":9036,"slug":9037,"type":15},{"slug":9040,"name":9040,"fn":9041,"description":9042,"org":9151,"tags":9152,"stars":26,"repoUrl":27,"updatedAt":9053},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9153,9154,9155,9156],{"name":9046,"slug":9047,"type":15},{"name":9013,"slug":34,"type":15},{"name":9032,"slug":9033,"type":15},{"name":9051,"slug":9052,"type":15},{"slug":9055,"name":9055,"fn":9056,"description":9057,"org":9158,"tags":9159,"stars":26,"repoUrl":27,"updatedAt":9070},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9160,9161,9162,9163,9164,9165],{"name":9013,"slug":34,"type":15},{"name":9062,"slug":9063,"type":15},{"name":9015,"slug":9016,"type":15},{"name":9,"slug":8,"type":15},{"name":9067,"slug":9068,"type":15},{"name":9051,"slug":9052,"type":15},{"slug":9072,"name":9072,"fn":9073,"description":9074,"org":9167,"tags":9168,"stars":26,"repoUrl":27,"updatedAt":9081},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9169,9170,9171,9172],{"name":9025,"slug":9026,"type":15},{"name":9013,"slug":34,"type":15},{"name":9015,"slug":9016,"type":15},{"name":9067,"slug":9068,"type":15},{"slug":9083,"name":9083,"fn":9084,"description":9085,"org":9174,"tags":9175,"stars":26,"repoUrl":27,"updatedAt":9094},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9176,9177,9178,9179],{"name":9089,"slug":9090,"type":15},{"name":9013,"slug":34,"type":15},{"name":9,"slug":8,"type":15},{"name":9067,"slug":9068,"type":15},{"slug":9096,"name":9096,"fn":9097,"description":9098,"org":9181,"tags":9182,"stars":26,"repoUrl":27,"updatedAt":9109},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9183,9184,9185,9186],{"name":9013,"slug":34,"type":15},{"name":9103,"slug":9104,"type":15},{"name":9106,"slug":9107,"type":15},{"name":9067,"slug":9068,"type":15},{"slug":9188,"name":9188,"fn":9189,"description":9190,"org":9191,"tags":9192,"stars":26,"repoUrl":27,"updatedAt":9201},"azure-appconfiguration-java","manage configuration with Azure App Configuration","Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots.\nTriggers: \"ConfigurationClient java\", \"app configuration java\", \"feature flag java\", \"configuration setting java\", \"azure config java\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9193,9194,9197,9200],{"name":9013,"slug":34,"type":15},{"name":9195,"slug":9196,"type":15},"Configuration","configuration",{"name":9198,"slug":9199,"type":15},"Feature Flags","feature-flags",{"name":9032,"slug":9033,"type":15},"2026-07-03T16:32:01.278468",{"slug":9203,"name":9203,"fn":5,"description":9204,"org":9205,"tags":9206,"stars":26,"repoUrl":27,"updatedAt":9213},"azure-cosmos-rust","Azure Cosmos DB library for Rust (NoSQL API). Document CRUD, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"document crud rust\", \"NoSQL rust\", \"partition key rust\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9207,9208,9209,9210],{"name":13,"slug":14,"type":15},{"name":24,"slug":25,"type":15},{"name":20,"slug":21,"type":15},{"name":9211,"slug":9212,"type":15},"Rust","rust","2026-07-31T05:54:27.021432",{"slug":4,"name":4,"fn":5,"description":6,"org":9215,"tags":9216,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9217,9218,9219,9220,9221],{"name":13,"slug":14,"type":15},{"name":24,"slug":25,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"slug":9223,"name":9223,"fn":9224,"description":9225,"org":9226,"tags":9227,"stars":26,"repoUrl":27,"updatedAt":9233},"azure-data-tables-java","build table storage applications with Java","Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[9228,9229,9230,9231,9232],{"name":9013,"slug":34,"type":15},{"name":13,"slug":14,"type":15},{"name":24,"slug":25,"type":15},{"name":9032,"slug":9033,"type":15},{"name":20,"slug":21,"type":15},"2026-05-13T06:14:17.582229",267]