node-restful icon indicating copy to clipboard operation
node-restful copied to clipboard

Select query for nested object

Open vishvas-agile opened this issue 9 years ago • 1 comments

Hello,

I have row in collection like { "_id" : ObjectId("57a9dd468218dde42cd3453b"), "Date" : ISODate("2016-08-09T13:40:22.887+0000"), "stock" : { "commerce_id" : "13", "stock_item_id" : "888", "storehouse_id" : "2", "stock_qty" : "1" }, "Name" : "stockItem_1", "reg_status" : "active" }

then

I want to get this result using query in browser like ?stock.commerce_id=13

so can you please help here for schema model and url query ?

Thank you...

vishvas-agile avatar Sep 10 '16 11:09 vishvas-agile

I added this into my own version of node-restful awhile ago, setup a pull request to hopefully get this feature into core

https://github.com/baugarten/node-restful/pull/141

electblake avatar Sep 12 '16 21:09 electblake