Is it possible to mutate with query like in upsert?

It won’t insert new records. To insert new records the mutation would have something that looks like

_:VARIABLENAME <isRead> true .

The subtle difference is the _: . That creates a new node. But if you have the UIDs already, then it just creates/sets the isRead predicate