-
Notifications
You must be signed in to change notification settings - Fork 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
finding by association doesn't work #5465
Comments
nooone even uses find by associations? |
I'm having a similar issue here. Any info on this @mikermcneil? |
Use the latest version of sails. Works for me in 0.10.5 |
it still doesn't work for me |
This isn't working for me either in Sails v0.11.0 |
@mkeremguc, @AnalogJ, which adapters are you using? Regarding |
@dmarcelino, mysql and mongo and yes, primary keys |
@dmarcelino I'm using postgres, and yes, I'm using the primary keys. I didn't catch an error like @mkeremguc saw, my query just never completed, though I just may not have had a |
I'm just thinking... I'm not sure this functionality is in the spec, at least I don't recall it when I implemented sails-orientdb and I don't remember seeing it in the docs. Can someone PR a test to waterline-adapter-tests? That would help towards figuring out which adapters are broken/don't implement this and then we could work on getting it fixed/spec'ed. |
there are lotsa features that is not in the docs either. however, that feature may not be implemented as @dmarcelino said. i was just referencing #124 (comment) at the time. even though it not be implemented yet, i would still ask how you search/find/filter by association values ? custom in-memory functions would not be efficient for large data sets. btw, it gives empty array via blueprint at the moment. |
This often relies on using |
Closing this as duplicate of #266, please re-open if you believe this is a different feature. |
User.js
UserGroup.js
when i try something like:
it gives error:
however, i do really need to search via blueprints like posting this to find method of the user controller:
it also gives server error 500 without details.
according to sails issue 124 which was the post about associations, the examples about finding through collections was like that: #124 (comment)
sorry if this is a sails issue and i posted this to wrong place.
using sails v0.10-rc7 and waterline-v0.10-rc13
bug or error on my side ?
thanks
The text was updated successfully, but these errors were encountered: