Opening a non-default realm


#1

hi,

i have been trying to open a realm that is not a default realm and i receive no data. when i use a default realm i was able to get data back but not with a different one. i have used the realms:// syntax for the sync url but with all the variations but no luck.

login to a new session
const user = await Realm.Sync.User.login(realmUrl, Realm.Sync.Credentials.nickname(nickname));

create user configuration object

const config = user.createConfiguration({
schema,
sync: {
  user: user,
  url: realmPath,
},
});
const syncRealm = new Realm(config);

my logs show realm loaded but when executing query nothing returns


#2

Have you subscribed to that data?


#3

It might be related to https://github.com/realm/realm-js/issues/1082