Closed ffeliciodeveloper closed 3 months ago
➤ PM Bot commented:
Jira ticket: RDART-1091
There's no obvious reason why this shouldn't work. Can you open a ticket on https://support.mongodb.com and the team will investigate. Considering you get the same results in dart and node, it's safe to assume this is not an issue with the dart SDK itself and it's likely returning the data the server sends it. Why the server is sending only a portion of that list is something only the support team is equipped to investigate.
What happened?
Good morning/afternoon/evening everyone!
Thank you in advance for your support.
I’m facing an issue where the entire list of ObjectIDs in the collections I need to load into the app is not being retrieved. I’m using Realm with Flutter and the DeviceSync feature to keep the data updated.
According to the Realm documentation, I understand that for any query I want to be real-time, it needs to be subscribed before being used in the project.
Below, I have the data related to the collections that are being returned according to the query I used in the Compass application.
Below, I provide the reference of the ObjectIDs that I am using to list the information mentioned above in Compass (these are the same ids that I use in the query in Compass)
As shown in the first image above, the first collection has a list of service_providers with a total of 9 items. However, during synchronization to my device, only 3 records are being returned in the ObjectID list. I navigated through the project and there is no filtering or any other operation that would limit the results to only 3 items. Below, I have included an image of my console and the command I execute to download the data to the device (see in the line where it shows the label [serviceProviders-list_customers_widget] serviceProviders). Looking at the image with the link to the Autodoc Tecnologia label, you can see that the service_providers list has 9 items, but as shown in the console result, only 3 items are shown.
I also created a script in nodeJs to answer the question in my dart/flutter code and the result presented for the list of service_providers was the same (below is the console image).
Does Device Sync have some type of cache?
Today I ended up disabling and re-enabling DeviceSync and still, the data is not being loaded as expected.
Do you need any more operations to be performed?
Repro steps
-
Version
Flutter 3.24.0 • channel stable / Dart 3.5.0
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
Android (any version) / IOS (any version)
Code snippets
Dart code
Node (script)
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response