i have this scenario,
interface IExample {
id: ID!
main: Main!
num: Int!
}
type Example1 implements IExample @entity {
id: ID!
main: Main!
num: Int!
num2: Int
}
type Main @entity {
id: ID!
examples: [IExample!]! @derivedFrom(field: "main")
}
but in my testing, when i create Main and Example1
there relationship via IExample will not show up in logStore()
however when deployed it is all good
i wanted to test something like
assert.i32Equals(mainEntity.examples.length, 1);
but i don't know how to properly test this