A fully type-safe ORM for Azure AI Search (formerly Cognitive Search), version 0.0.20. It provides a fluent schema definition API inspired by Drizzle ORM, with strong TypeScript support for field types, filters, sorters, facets, suggesters, and automatic field mappings. The package wraps the official @azure/search-documents client and supports ESM/CommonJS. It's ideal for developers who want type safety and a declarative schema rather than raw REST API calls. Release cadence is monthly, with features closely tracking Azure AI Search updates. Differentiators: schema-based mapping, automatic indexer field mappings, and a clean DSL for complex types.
npm install azure-ai-search-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define an index schema, connect to Azure AI Search, and perform a basic search with select fields.
Ensure complex type structures match the index definition exactly; field mapping is not supported for nested fields.
Continue using current APIs; watch for future versions that may align naming.
Specify custom suggester name when calling suggest() if not using default.
Use ES module imports (import { ... } from 'azure-ai-search-orm'). For CommonJS, use dynamic import: const module = await import('azure-ai-search-orm');Ensure connect() receives a valid index schema (returned from index()) and a SearchIndexClient instance.
Run 'npm install azure-ai-search-orm' and verify import path is correct.
Check schema field definitions and ensure the field name matches exactly (case-sensitive).