Write-only realm in Realm Sync

I want to do some custom error logging in my Xamarin application and store these objects using realm sync. I want to use an object similar to this:

[MapTo("error_details")]
public class ErrorDetails : RealmObject
{
    [PrimaryKey]
    [MapTo("_id")]
    public int Id { get; set; }

    [MapTo("user_id")]
    public int Userid { get; set; }

    [MapTo("error_date")]
    public DateTimeOffset ErrorDate { get; set; }

    [MapTo("debug_message")]
    public string DebugMessage { get; set; }

    [MapTo("error_exception")]
    public string ErrorException { get; set; }
}

However, I don’t want all the realm objects to be stored locally, I want to write to a realm and sync it to the server without downloading all the synced realm objects that belong to the realm, in a sort of fire-and-forget fashion. Is there a way to do this?

1 Like

This is not yet possible, but we’re actively working on a feature called Flexible Sync that will enable this use case.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.