Skip to content

Can't refer to UserId in an Id field #1149

Description

@parsonsmatt

This QQ breaks with an error that UserId is not in scope.

share [ mkPersist sqlSettings ] [persistLowerCase|

User
    name    String

Profile
    Id      UserId
    email   String
|]

However, using UserId is usually fine in other contexts. So why isn't this working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions