zackyang000 / node-odata

A library for easily create OData REST API, abide by OData protocol.
http://zackyang000.github.io/node-odata/en/
MIT License
365 stars 65 forks source link

Please show example with mongodb and how it is accessed/ queried #93

Open carolavaitl opened 5 years ago

carolavaitl commented 5 years ago

Hi, may you please show a more detailed example of how to use your api with mongodb. What I mean is, how the data in db is accessed. You only show examples, in which you return any hard-coded json-object. But what's interesting is the db-access, e.g. how to read/ query books?

And is there a possibility to access a specific collections in mongodb? E.g. you have multiple tenants and each of them has a own collection.

Best regards!