Skip to content

Conversation

@stephencelis
Copy link
Member

This has come up a few times on Slack and we don't have the functionality documented.

This has come up a few times on Slack and we don't have the
functionality documented.
Copy link

@FredericRuaudel FredericRuaudel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this helpful addition!

/// @Selection
/// struct UserWithReferrer {
/// let user: User
/// @Column(as: TableAlias<User, Referrer>.self)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that using the singular form doesn't work. The compiler complains that User requires to conform to QueryBindable. But using the plural forms @Columns works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants