2 / 2
Jan 2024

Hi! I’ve been using the realm .net sdk in unity for a while now and everything was working. But recently I uptaded it to version 11.6.1 and I’m getting a error:

In my user realm object I store the campaigns they are in:

public IList<CampaignInfo> Campaigns {get;}

and in the campaign object I have a backlink to query the players in that campaign

[Backlink(nameof(UserData.Campaigns))] public IQueryable<UserData> Players { get;}

And I subscribe:

Realm.Subscriptions.Update(() => { Realm.Subscriptions.Add(CampaignInfo.Players); });

It was working fine, but now I’m getting this error:

RealmException: Serialization of a query constrained by a view is not currently supported
Realms.NativeException.ThrowIfNecessary () (at <3ff9cade0d5745aa90679519e2526012>:0)

Thanks!