You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an entity type is declared with @entity(timeseries: true) codegen should produce slightly different code for it:
The constructor for such types should take no arguments and automatically set id to "auto" and timestamp to 0 (graph-node will fill in the correct value automatically)
All numeric fields should be initialized to 0 (of the appropriate type)
There's also a small feature request for graph-ts in here: it would be good to have constants for commonly used BigDecimal and BigInt values, especially ZERO_BD and ZERO_BI for 0 in those types (or BigDecimal::ZERO, not sure if that can be done in AssemblyScript)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When an entity type is declared with
@entity(timeseries: true)
codegen should produce slightly different code for it:id
to"auto"
andtimestamp
to 0 (graph-node
will fill in the correct value automatically)There's also a small feature request for
graph-ts
in here: it would be good to have constants for commonly usedBigDecimal
andBigInt
values, especiallyZERO_BD
andZERO_BI
for 0 in those types (orBigDecimal::ZERO
, not sure if that can be done in AssemblyScript)Beta Was this translation helpful? Give feedback.
All reactions