{"library":"odata-v4-typeorm-improved","title":"odata-v4-typeorm-improved","description":"OData V4 to TypeORM query compiler that translates OData query strings ($filter, $orderby, $top, $skip, $expand, $select, $search, etc.) into TypeORM query builder calls. Current stable version 1.0.3 (March 2024). Released under MIT license. Differs from other OData-to-ORM libraries by offering a simple middleware integration for Express and NestJS, direct support for TypeORM repositories and query builders, and TypeScript-first design. It wraps TypeORM's repository to produce OData-compliant endpoints with minimal boilerplate. Suitable for building REST APIs that follow the OData protocol on top of any SQL database supported by TypeORM. Requires TypeORM >=0.3.28.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install odata-v4-typeorm-improved"],"cli":null},"imports":["import { odataQuery } from 'odata-v4-typeorm-improved'","import { executeQuery } from 'odata-v4-typeorm-improved'","import { executeQuery } from 'odata-v4-typeorm-improved'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import express from 'express';\nimport { odataQuery } from 'odata-v4-typeorm-improved';\nimport { getRepository } from 'typeorm';\nimport { User } from './entities/User';\n\nconst app = express();\nconst port = 3001;\n\napp.get('/api/users', odataQuery(getRepository(User)));\n\napp.listen(port, () => console.log(`Server running on port ${port}`));","lang":"typescript","description":"Creates an Express endpoint that translates OData query parameters to TypeORM queries using the provided repository.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}