-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Ability to query nested documents/objects/arrays #953
Comments
With the PR in place, the above query should work as follows:
It might have worked before, but not if you defined the people property as:
|
This is possibly a duplicate of #517. |
+1 for support in the memory-connector aswell! |
Yeah what @AlmaasAre said! For testing purposes |
hey @bajtos can you advise what is the best place in source code to start tickling this feature? so what would be your advise to implement this so it might get a chance to be merged to Thanks. 👍 |
@raymondfeng @fabien do you have any thoughts on how to implement support for querying nested documents/objects/arrays? I am not familiar enough with this part of loopback to give a good advice. |
thanks @bajtos Since you guys @raymondfeng @fabien have more experience with your code, please advise on the best way to pursue this. Thank you. Have a nice weekend ahead! |
@eugenehp: Have you made any progress on this: https://github.com/strongloop/loopback-datasource-juggler/pull/1083/files allows this functionality but only for arrays and may provide some insight on now to implement for objects. There's also #517, which is an ongoing discussion on filtering level 2 properties. Will close this issue if no response since it's been over a year. |
For example right now there doesn't seem to be an easy way to have equivalent of this mongodb query with loopback where filters:
Do note that poeple is an array of objects that contains, tags which is an array of strings.
Note that this has been asked before on mailing list and on stackoverflow.
The text was updated successfully, but these errors were encountered: