Skip to content

Unmapped entity types for interfaces extending base interface #1290

@klys-equinix

Description

@klys-equinix

I have a base interface defined as

interface Asset @key(fields: "id") {
    id: ID! # read only
...
}

and several interfaces extending it like

interface UsesInBoardAsset implements Asset @key(fields: "id") {
    id: ID! # read only
...
}

After 1.4.x changes, i am getting

Caused by: java.lang.IllegalStateException: Unmapped entity types: 'UsesInBoardAsset', 'UsesOnBusBarAsset', 'MechanicalAirAsset', 

But all of those interfaces have an entity mapping based on the base interface, they are served using the

  @EntityMapping(value = "Asset")
  fun assetEntities(
      @Argument(name = "id") ids: List<String>,
      env: DataFetchingEnvironment,
  ) = fetchAssetsByIds(ids, env)

which works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions