Skip to content

Properties of extended types cant be referenced in @@index #283

@EcksDy

Description

@EcksDy

I have a simple setup with 2 zmodel files, schema.zmodel that imports types from base.zmodel.

The following will error out:

import "base"

model SomeModel extends BaseType {
  // ...
  
  // Could not resolve reference to ReferenceTarget named 'some_field_from_base_type'.zmodel-v3 
  @@index([some_field_from_base_type])
}

If the BaseType is defined in the same file - the reference works.

version: 3.0.0-beta.8

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