Refresh stored calc Field

#1

Hi,
I have TypeA:

typeA {
field1: [TypeB] (...)
field2: [TypeC] stored calc "unique(field1.field_type_B)" schema suffix 'BLW'
}

if I run

x = typeA.get("id_type_A","field2")

it return an empty array for x.field2, I tried :

before Tag.rebuild("myTagName",{storedCalcs: true}) and after typeA.refreshCalcFields(), for both cases it doesn’t seem to work.

Any idea about how to retrieve the stored calc field?

Thanks

0 Likes

#2

If you run TypeA.evaluate({projection: "unique(field1.field_type_B)"}) does it return the expected values? Just trying to debug…

0 Likes

#3

What version of server are you on?

0 Likes