Gathering detailed insights and metrics for @steedos/odata-v4-typeorm
Gathering detailed insights and metrics for @steedos/odata-v4-typeorm
Gathering detailed insights and metrics for @steedos/odata-v4-typeorm
Gathering detailed insights and metrics for @steedos/odata-v4-typeorm
npm install @steedos/odata-v4-typeorm
Typescript
Module System
Node Version
NPM Version
77.3
Supply Chain
98.3
Quality
98.7
Maintenance
100
Vulnerability
100
License
PLpgSQL (88.02%)
TypeScript (11.98%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
47 Commits
1 Forks
3 Watchers
2 Branches
2 Contributors
Updated on Jul 09, 2020
Latest Version
2.6.38
Package Id
@steedos/odata-v4-typeorm@2.6.38
Unpacked Size
60.50 kB
Size
11.84 kB
File Count
18
NPM Version
lerna/4.0.0/node@v14.21.3+x64 (linux)
Node Version
14.21.3
Published on
May 04, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Service OData v4 requests from a TYPEORM.
The OData V4 TYPEORM Connector provides functionality to convert the various types of OData segments into SQL query statements, that you can execute over a TYPEORM.
//example request: GET /api/users?$filter=id eq 42&$select=id,name
1import express from 'express'; 2import { odataQuery } from 'odata-v4-typeorm'; 3import { getRepository } from 'typeorm'; 4import { User } from '../entities/user'; 5 6const app = express(); 7const usersRepository = getRepository(User); 8 9app.get('/api/users', odataQuery(usersRepository)); 10 11const port = 3001; 12app.listen(port, () => console.log(`Example app listening on port ${port}!`));
1import express from 'express'; 2import { executeQuery } from 'odata-v4-typeorm'; 3import { getRepository } from 'typeorm'; 4import { User } from '../entities/user'; 5 6const app = express(); 7 8app.get('/api/users', async (req, res) => { 9 try { 10 const usersRepository = getRepository(User); 11 const data = await executeQuery(usersRepository, req.query); 12 return res.status(200).json(data); 13 } catch (e) { 14 return res.status(500).json({message: 'Internal server error.'}); 15 } 16}); 17 18const port = 3001; 19app.listen(port, () => console.log(`Example app listening on port ${port}!`));
1import express from 'express'; 2import { executeQuery } from 'odata-v4-typeorm'; 3import { getRepository } from 'typeorm'; 4import { User } from '../entities/user'; 5 6const app = express(); 7 8app.get('/api/users', async (req, res) => { 9 try { 10 const queryBuilder = getRepository(User) 11 .createQueryBuilder("user") 12 .where("user.roleName = :roleName", { roleName: 'admin' }); 13 const data = await executeQuery(queryBuilder, req.query); 14 return res.status(200).json(data); 15 } catch (e) { 16 return res.status(500).json({message: 'Internal server error.'}); 17 } 18}); 19 20const port = 3001; 21app.listen(port, () => console.log(`Example app listening on port ${port}!`));
1import { createFilter } from 'odata-v4-typeorm' 2 3//example request: GET /api/Users?$filter=Id eq 42 4app.get("/api/Users", (req: Request, res: Response) => { 5 const filter = createFilter(req.query.$filter); 6 // connection instance from pg module 7 connection.query(`SELECT * FROM Users WHERE ${filter.where}`, filter.parameters, function(err, result){ 8 res.json({ 9 '@odata.context': req.protocol + '://' + req.get('host') + '/api/$metadata#Users', 10 value: result.rows 11 }); 12 }); 13});
Advanced TypeScript example available here.
1var createFilter = require('odata-v4-typeorm').createFilter; 2 3app.get("/api/Users", function(req, res) { 4 var filter = createFilter(req.query.$filter); 5 // connection instance from pg module 6 connection.query(filter.from("Users"), filter.parameters, function(err, result){ 7 res.json({ 8 '@odata.context': req.protocol + '://' + req.get('host') + '/api/$metadata#Users', 9 value: result.rows 10 }); 11 }); 12})
If you have any questions, please don’t hesitate to contact me.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More