Skip to content

Can not see any related ToMany field using ObjectBox Admin #1151

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

Open
stleusc opened this issue Sep 26, 2023 · 3 comments
Open

Can not see any related ToMany field using ObjectBox Admin #1151

stleusc opened this issue Sep 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@stleusc
Copy link

stleusc commented Sep 26, 2023

I am using the latest version 3.7.0 and when looking at my data using ObjectBox Admin I can see the related Id field for ToOne relations.
However any ToMany relations (backlink or not) simple don't show up anywhere.
Not sure if it is considered too much data to show it or why it is missing.
But even if it is not possible to show all the data, at least the presence of the ToMany relation should be visible somewhere.
It's also not showing in the schema view.

In default.json it seem that ToOne show up as properties but ToMany are stored under relations.
Like I said, I think it could be listed in the schema view and at list it's existence should be visible in the data view as well.
Of course, ideally with data, but at least in some way.

@stleusc stleusc added the bug Something isn't working label Sep 26, 2023
@greenrobot-team greenrobot-team added enhancement New feature or request and removed bug Something isn't working labels Oct 9, 2023
@greenrobot-team
Copy link
Member

Thanks for this request! Yes, currently standalone to-many relations are not shown in Admin.

For anyone else interested, please thumbs up the first comment!

@ajans
Copy link

ajans commented Jan 13, 2025

I think this is crucial for debugging relations.

Currently, if I have some sort of problem with showing related objects that don't have an explicit relating ID (like a parentId), it is impossible to find out, at least by looking at the Admin, which related objects belong to which parent object.

If I understand ToMany correctly, each related object should have an associated parentId-property anyway, so the easiest solution would (in theory) be to show those relation-IDs in the Admin.

@greenrobot
Copy link
Member

If I understand ToMany correctly, each related object should have an associated parentId-property

This should already work for 1:n relations on the "1" side (the ID should be shown). But for n:m relations, no info is shown.

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

No branches or pull requests

4 participants