pofider / node-simple-odata-server

Simple OData server for node.js
MIT License
97 stars 60 forks source link

Need more information about Configuration #50

Open nawaz4alumnux opened 2 years ago

nawaz4alumnux commented 2 years ago

AIM: I want to add filters and manipulate collections names before data fetch from DB.

npm in use:

  1. 'simple-odata-server'
  2. 'simple-odata-server-mongodb'

Hello, Can you provide some example as to how one might use Configuration. particularly query.

For example: If user request something like http://localhost:1337/data, It means data collection will be fetch and converted to odata format.
I want to add some filter when data collection is fetched. I also want to override the name of the data collection internally (@odata.context refers to data not the overridden collection name ).