Skip to content

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

@parsonsmatt

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

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions