Skip to content

[Feature Request] @delegate based on multiple fields #2737

Description

@hechang27-sprt

Quite annoying to have to de-normalize a combined key just so that it can be used for @@delegate:

model Base {
  appKey String
  collectionKey String
  // @@delegate(appKey, collectionKey) -- Doesn't work
  combinedKey String @computed // generates just fine but produces error at runtime 
}

not to mention that that de-normalized column can't even use a @computed and has to be maintained in code.

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