pofider / node-simple-odata-server

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

Are all responses from the server wrapped in value property #26

Open reaperc9000 opened 7 years ago

reaperc9000 commented 7 years ago

Hi,

Are all responses from the server wrapped in value property? For example, if i use a custom implementation of the data layer by overriding query and return - { "_id": "yes", "business_key": "yes yes", "email": "yes@yes.com"} - to the callback function. Then the odata API returns that object and the same object wrapped inside a value object.

{ "@odata.context": "http://localhost:1337/$metadata#users/$entity", "_id": "yes", "business_key": "yes yes", "email": "yes@yes.com", "value": { "_id": "yes", "business_key": "yes yes", "email": "yes@yes.com" } }