Skip to content

C# SDK. If I subscribe to changes via a View, updates to rows trigger OnInsert + OnDelete instead of OnUpdate #4512

@immafirin07

Description

@immafirin07

I have a public table and a view like that:

[View(Accessor = "MyHeroes", Public = true)]
public static IQuery<Hero> MyHeroes(ViewContext ctx)
{
    return ctx.From.Hero().Where(h => h.Owner.Eq(ctx.Sender));
}

If I subscribe to the public table and update the row, I receive OnUpdate callback.
If I subscribe to the view and update the row, I receive OnInsert + OnDelete callbacks.

Here is how it looks in the logs:

  1. [14:13:59] Create an entry.
  2. [14:14:07] Update it.
Image

Any ideas why subscribing to a View behaves differently from subscribing to a public table?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions