As Matchstick v0.2.0 provides ability to produce warnings if there are some required fields that are not set after save() was run, fields with @derivedFrom directive should not be included in this scenario since they are virtual field that should be ok if not setting it in the subgraph code.
Suggestion
additional filter may be added to this part of code to check whether each field has @derivedFrom directive.
Description
As Matchstick v0.2.0 provides ability to produce warnings if there are some required fields that are not set after
save()
was run, fields with@derivedFrom
directive should not be included in this scenario since they are virtual field that should be ok if not setting it in the subgraph code.Suggestion
additional
filter
may be added to this part of code to check whether each field has@derivedFrom
directive.https://github.com/LimeChain/matchstick/blob/1c0161174e998e02321bb2ee0e9fec79fca025ec/src/context.rs#L276-L298