Gathering detailed insights and metrics for @steedos/odata-v4-mongodb
Gathering detailed insights and metrics for @steedos/odata-v4-mongodb
Gathering detailed insights and metrics for @steedos/odata-v4-mongodb
Gathering detailed insights and metrics for @steedos/odata-v4-mongodb
This server component lets you process OData requests over a MongoDB database
npm install @steedos/odata-v4-mongodb
Typescript
Module System
Node Version
NPM Version
TypeScript (68.78%)
JavaScript (31.22%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
31 Stars
22 Commits
24 Forks
12 Watchers
2 Branches
7 Contributors
Updated on May 08, 2025
Latest Version
2.6.38
Package Id
@steedos/odata-v4-mongodb@2.6.38
Unpacked Size
42.43 kB
Size
8.58 kB
File Count
12
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
2
Service OData v4 requests from a MongoDB data store.
The OData V4 MongoDB Connector provides functionality to convert the various types of OData segments into MongoDB query objects, that you can execute over a MongoDB database.
1import { createFilter } from '@steedos/odata-v4-mongodb' 2 3//example request: GET /api/products?$filter=category/id eq 5 or color eq 'Red' 4app.get("/api/products", (req: Request, res: Response) => { 5 const filter = createFilter(req.query.$filter); 6 // collection instance from MongoDB Node.JS Driver 7 collection.find(filter, function(err, data){ 8 res.json({ 9 '@odata.context': req.protocol + '://' + req.get('host') + '/api/$metadata#products', 10 value: data 11 }); 12 }); 13});
1var createFilter = require('@steedos/odata-v4-mongodb').createFilter; 2 3app.get("/api/products", function(req, res) { 4 var filter = createFilter(req.query.$filter); 5 // collection instance from MongoDB Node.JS Driver 6 collection.find(filter, function(err, data){ 7 res.json({ 8 '@odata.context': req.protocol + '://' + req.get('host') + '/api/$metadata#products', 9 value: data 10 }); 11 }); 12})
For now $filter, $select, $skip and $top
Support for $expand is next.
The OData v4 Parser layer supports 100% of the specification. The Connector is supporting basic MongoDB queries.
We are into creating a comprehensive feature availability chart for V1 release
√ expression 5.1.1.6.1: NullValue eq null
√ expression 5.1.1.6.1: TrueValue eq true
√ expression 5.1.1.6.1: FalseValue eq false
√ expression 5.1.1.6.1: IntegerValue lt -128
√ expression 5.1.1.6.1: DecimalValue eq 34.95
√ expression 5.1.1.6.1: StringValue eq 'Say Hello,then go'
√ expression 5.1.1.6.1: DurationValue eq duration'P12DT23H59M59.999999999999S'
√ expression 5.1.1.6.1: DateValue eq 2012-12-03
√ expression 5.1.1.6.1: DateTimeOffsetValue eq 2012-12-03T07:16:23Z
√ expression 5.1.1.6.1: GuidValue eq 01234567-89ab-cdef-0123-456789abcdef
√ expression 5.1.1.6.1: Int64Value eq 0
√ expression 5.1.1.6.1: A eq INF
√ expression 5.1.1.6.1: A eq 0.31415926535897931e1
√ expression 5.1.1.1.2: A ne 1
√ expression 5.1.1.1.3: A gt 2
√ expression 5.1.1.1.4: A ge 3
√ expression 5.1.1.1.5: A lt 2
√ expression 5.1.1.1.6: A le 2
√ expression: A/b eq 1
√ expression 5.1.1.3: (A/b eq 2) or (B/c lt 4) and ((E gt 5) or (E lt -1))
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/20 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 effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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