$ npm install seal-odata-mongo
First you need to add a reference to seal-odata-mongo within your application.
const odataMongo = ;
Then you can enable Express routes to handle incoming OData queries. For that, add the middleware to the appropriate route. Within the route you then can access the
req.mongo.queryOptions objects that contain the query and the query options for MongoDB.
In case the client sends an invalid OData expression, the middleware responds with a
400 status code.
supported OData keys
$top- limit the result to N elements
$skip- skip N elements of the query
$inlinecount- see implementation example in seal-rest to retrieve count and the result
Running the build
To build this module use roboter.