The GraphQL entities defined in subgraph's schema can be composed of
optional and required fields. A field is marked as required using the
exclamation mark in its definition. When a field is marked as required,
this must contain a non-null and non-empty value.
Until now, in Threshold Network subgraph, there are several entities
whose required fields are initialized as empty values:
stakes in Epoch entity.
totalWeight in StakeDelegation entity.
totalWeight and liquidWeight in TokenholderDelegation entity.
liquidTotal and stakedTotal in DAOMetric entity.
The previous versions of The Graph node allowed to deploy subgraphs
with required fields set as empty or null, but with recent version, the
deployment fails with message: Null value resolved for non-null field name.
The GraphQL entities defined in subgraph's schema can be composed of optional and required fields. A field is marked as required using the exclamation mark in its definition. When a field is marked as required, this must contain a non-null and non-empty value.
Until now, in Threshold Network subgraph, there are several entities whose required fields are initialized as empty values:
stakes
inEpoch
entity.totalWeight
inStakeDelegation
entity.totalWeight
andliquidWeight
inTokenholderDelegation
entity.liquidTotal
andstakedTotal
inDAOMetric
entity.The previous versions of The Graph node allowed to deploy subgraphs with required fields set as empty or null, but with recent version, the deployment fails with message:
Null value resolved for non-null field name
.