-
Notifications
You must be signed in to change notification settings - Fork 65
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
query the example of 'complex-resource' #69
Comments
Sorry, it's not support this feature, it can only support a simple model query. I will try to add it on this weekend. |
try
|
Hi @TossShinHwa, many thanks for your quick reply! It seems working well before I add following new orderItems to the collection,
In this case, if I query,
The response would always include the entire array, if there is at least one price in the array matches the query. I wonder if I have to use $expand or any/all functions to further filter (refine) the result in this case? The response of above query (price less than 15):
The response of query (price greater than 15):
|
Unfortunately, it's not support You can add a ACTION for this resource, it's use mongoDB API to filter data. example:
|
Thanks for the reply! but I met a small problem with const { price },
|
ES6 syntax:
Same as ES5 syntax:
|
Hi ! The ES5 syntax seems working, whereas the query cannot get a result in my test..
The response,
The data, I assume ACTION should also work in the case of non-multiple orderItems.
|
Strange, it should be working. plz check your code is same as the example. |
I have tried to add some mock data for the complex-resource example, which has its structure as,
The question is, how can I get the result that the orderItems have their products with the prices higher than 10.00, for example?
I have tried the queries like, without luck.
the results are always empty, was this a bug or something I was missing, any ideas?
{"value":[]}
The mock data:
The text was updated successfully, but these errors were encountered: