-
-
Notifications
You must be signed in to change notification settings - Fork 744
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
Embedding only follows _id #1069
Comments
For the timw being, embedded document can be references using the id_field in the resource configuration. You can use the code in the PR #1033 in order to costonize the research in the "child" document using the hook event. |
Thanks for the info! |
@nicolaiarocci and @Amedeo91, have been running into a similar case as @scholzd ,and it looks like Lines 905 to 911 in e3838be
For now I'm using the following, honoring
Or is this unintentionally opening a can of worms? |
Fix for pyeve#1069 also resolving data_relation field
Fixes pyeve#1069 following data_relation.field
Fixes pyeve#1069 following data_relation.field
I have the following schemes:
When now querying
the resulting value for hardware is null.
The following lines seem to be the problem
eve/eve/methods/common.py
Lines 826 to 829 in cee2f7e
Internally, in nodes_hw a lookup is performed with _id = VALUE_OF_HARDWARE.
Changing this line to use data_relation['field'] yields the expected result.
Then the internal lookup is correctly performed with name = VALUE_OF_HARDWARE
As result, hardware contains a dictionary with the embedded nodes_hw object.
Am I doing something wrong, is this not wanted or is this a bug?
The text was updated successfully, but these errors were encountered: