131 questions
0
votes
0
answers
34
views
ObjectBox - any way to treat old deleted property and new properety with the same name(but different uid) as the same property in database?
I had this property named reminders in my Task entity.
String? reminders;
then I deleted it to migrate it to use List<String> instead, unfortunately I realized this later that to migrate the ...
2
votes
1
answer
117
views
Error: The method 'getInvocation' isn't defined for the type 'DartObjectImpl'
Android Studio Latest, Flutter 3.35.6, sdk: ^3.9.2, Microsoft Windows 11 25H2,
Flutter Doctor without warnings.
Create a new Flutter project (Android & iOS) and without touching the generated code,...
2
votes
0
answers
49
views
Objectbox sort object using the sum in one to many relations
I am using objectbox for the database in my app. I have a one to many relation between my items and I want to sort my items based on that relation.
As an example I use these entities :
@Entity()
class ...
1
vote
1
answer
41
views
How to store objets to pre-populate objectbox database
I am using objectbox to store a database in my mobile app written in flutter. I have to pre-prolate the database at first launch with files provided in the .apk.
I tried using the data.mdb file ...
1
vote
0
answers
76
views
ObjectBox for Dart not lazy-loading ToMany relations separately
In the documentation for ObjectBox, they say
to-many relations are resolved lazily on first access, and then cached in the source entity inside the ToMany object.
In my app, I want to use a ToMany ...
1
vote
1
answer
126
views
Unable to ship my flutter app with a pre-built ObjectBox database
I'm unable to ship my Flutter app with a pre-built database. Below is my approach; it would be greatly appreciated if this intent of shipping a database and the steps involved are validated. Thank you....
0
votes
0
answers
16
views
Querying by count of elements in a tomany relation (How many customers with at least two orders?)
I'm new to ObjectBox so this question might be very basic, but I could not find an answer in the guides.
In the sample classes below, I would like to query all Customers that have at least 2 orders.
...
0
votes
0
answers
110
views
ObjectBox Cannot open store: another store is still open using the same path
I have a flutter app that uses ObjectBox to cache some data for offline availability.
I have an issue where if I swipe back on my android phone and the app goes to the background, when I open the app ...
0
votes
1
answer
84
views
ObjectBox select what to sync
I am just trying out ObjectBox and sync server.
I have a very simple sync scenario where I have multiple users for example user_A and user_B. Each user may have multiple devices, for example user_A ...
0
votes
0
answers
47
views
Flutter Object Box store image from URL
Does anyone know how we can store images obtained from a URL to object box ?
This is what i currently have:
@Entity()
class ServiceModel {
@Id()
int id = 0;
@Unique()
final String identifier;
...
1
vote
0
answers
55
views
ObjectBox Admin in Docker - Not refreshing UI data when db data are CRUDed
I am using ObjectBox Admin in Windows through WSL (Docker in WSL, using objectbox-admin.sh) and accessing a db file in Documents folder (shared with WSL).
From a browser I can access the contents in ...
0
votes
0
answers
32
views
Can ObjectBox sync data specifcally for a given user? (particularly in Flutter)
In their FAQs (https://objectbox.io/faq/) they suggest this is not yet possible (under the "Would ObjectBox be a good fit in my case?" question). Is this definitely the case? If so, do we ...
0
votes
1
answer
70
views
Error 404 when saving object with relation in Objectbox after removing a ToMany relation
I use objectbox with Flutter for one of my project. I have two object link MyObject and InsideObject :
@Entity()
class MyObject {
@Id()
int id = 0;
String? name;
final insideObjects = ToMany&...
0
votes
0
answers
31
views
Is it possible to access the DB in the phone from the Laptop?
I successfully created and filled a DB from a sample app using Flutter on an Android device.
Now, can I access this DB from outside the app, ideally from the Laptop I'm using for the development?
...
0
votes
1
answer
85
views
how to restore objectbox-model.json file after building
I'm using flutter with windows desktop and forget submit objectbox-model.json file to git. The App already run in the production envionment, how to restore the objectbox-model.json file working with ...