Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select query for nested object #139

Open
vishvas-agile opened this issue Sep 10, 2016 · 1 comment
Open

Select query for nested object #139

vishvas-agile opened this issue Sep 10, 2016 · 1 comment

Comments

@vishvas-agile
Copy link

vishvas-agile commented Sep 10, 2016

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...

@electblake
Copy link

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

#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants