-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Bug]: Invalid argument(s): Element (FieldElementImpl) $Match? match is not defined in this library (When using @Backlink) #1015
Comments
Hi @geosebas Thanks for reporting this! Regarding cross file backlinks, then this is indeed a bug in the generator, and I have pushed a PR to fix it. Regarding your suggestion to use
The type hierarchy in Dart regarding collections does not allow for a lot of static differentiation, so we chose Anyway, this is just for the models. In the generated class the backlink property is |
Hi @nielsenko Thanks for the explanation and the fix ! Have a nice day ! |
What happened?
Hi !
The bug here is that you cannot use a backlink if not in the same file/library.
That may be more related to dart that realm, somethink like Symbol cannot look up for properties not in the same file/library ? I'm not a dart/flutter specialist, so I prefer to fill a bug here to report the issue to you.
And on a related note, you cannot use List as a type, just Iterable. Imho, it's something to improve, at least to keep consistency with other relation that use List.
Repro steps
https://github.com/geosebas/flutter_realm_backlink
Version
0.7.0rc
What Realm SDK flavor are you using?
MongoDB Atlas (i.e. Sync, auth, functions)
What type of application is this?
Flutter Application
Client OS and version
Generation realm
Code snippets
No response
Stacktrace of the exception/crash you're getting
The text was updated successfully, but these errors were encountered: