Refetch computed for newly inserted objects (#869)
Given a schema
```
type A {
total_val := sum(.<a[is B].val);
};
type B {
a: A;
val: int64;
};
```
If a user does:
```
a = default.A()
b = default.B(a=a, val=7)
client.sync(a, b)
```
The order of inserts will be `a`, then `b` and so the value of `a.total_val` fetched during the insert will be 0.
This PR adds a refetch query for the computed properties of newly inserted objects.
Tests are based on #848 and cover rewrites and triggers as well. D
dnwpark committed
854a79cf0fe6aa19fc4d58acb947c2012883f446
Parent: fe05361
Committed by GitHub <noreply@github.com>
on 9/4/2025, 1:43:09 AM