Skip to content

Interface relation do not appear in logStore #386

@Rekard0

Description

@Rekard0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions