node-restful
node-restful copied to clipboard
Select query for nested object
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...
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