You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot able to get the data from my mongodb with this implementations. The lack of instructions from Realm didn't helped me.
I need to get the data from my mongodb with the appid and apikey (which i already have)
Repro steps
Copy and paste the below code and call the class instance on with GetIt in Locator file while calling the main.dart's main method.
What happened?
I cannot able to get the data from my mongodb with this implementations. The lack of instructions from Realm didn't helped me.
I need to get the data from my mongodb with the appid and apikey (which i already have)
Repro steps
Copy and paste the below code and call the class instance on with GetIt in Locator file while calling the main.dart's main method.
Run it on Android emulator.
Version
Flutter version: 3.22.3
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
realm version 3.4.1 and flutter 3.22.3
Code snippets
import 'package:flutter/material.dart';
import 'package:realm/realm.dart';
import 'package:team_appcommon/team_appcommon.dart';
import 'package:team_inventory/src/common/realm/realm_models/realm_models.dart';
import 'package:team_inventory/src/common/secure_storage/secure_storage_constants.dart';
/// Class to handle the Realm Configuration
class InventoryRealmConfiguration {
late App _app;
User? _user;
/// Constructor
InventoryRealmConfiguration();
Future config() async {
const appId = "inventory";
final secureStorageManager = SecureStorageManager();
}
/// Open the realm db
Realm openRealm(Configuration config) {
debugPrint('Open Realm Called');
return Realm(config);
}
List getItemData() {
if (_user == null) throw Exception("User is not logged in");
}
}
Stacktrace of the exception/crash you're getting
Relevant log output
No response
The text was updated successfully, but these errors were encountered: