LimeChain / matchstick

🔥 Unit testing framework for Subgraph development on The Graph protocol. ⚙️
MIT License
207 stars 17 forks source link

Add support for inheritance when reading derived fields #387

Closed georg-getz closed 11 months ago

georg-getz commented 1 year ago

You should be able to have the option to pass an interface as the type of a derived field in the schema.graphql examples: [IExample!]! @derivedFrom(field: "main") If IExample in the code above is an interface the whole field is going to be ignored because when the derived hashmap is created it would put IExample as the entity type to look for when store.set() is called whereas it should be looking for any entities that implement it.