pofider / node-simple-odata-server

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

$inlinecount support #14

Open aldolo69 opened 8 years ago

aldolo69 commented 8 years ago

It seem that $inlinecount is supported, but using it the query does not return any data. still investigating, but it seem that $inlinecount is managed like $count that does not return anything but a number. at the end even the number is lost

pofider commented 8 years ago

I think $inlinecount is for OData v3. This tries to implement OData v4 which uses $count instead.

The following returns the first 15 items and also includes the total count in the response.

/odata/templates?$skip=0&$top=15$count=true`
aldolo69 commented 8 years ago

hi jan. i've spent a couple of day debugging the library and using it with sapui5 components. i've changed it a lot to make the 2 talk together. sapui5 works best with odata v2 but uses some v4 features if you don't tell it not to do so. at the end your work is really valuable, but it is only a starting point in this scenario. i'm very unpleased with mongodb. the lack of commit/rollback may become a showstopper in complex business application. anyway sapui5+your lib+mongodb could be a winner is some situations. i've proposed it. let's see. thank you

Jan Blaha writes:

I think $inlinecount is for OData v3. This tries to implement OData v4 which uses $count instead.

The following returns the first 15 items and also includes the total count in the response.

/odata/templates?$skip=0&$top=15$count=true`

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/pofider/node-simple-odata-server/issues/14#issuecomment-200753957