You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to do the following, I get an error Operator function '==' requires the types 'OtherParticipant' and 'ChatParticipant' be equivalent. The following compiles if I use \OtherParticipant.$id. The ModelAlias OtherParticipant no longer matches \OtherParticipant.$user.$id's model ChatParticipant.
finalclassMeAsAParticipant:ModelAlias{staticletname:String="me_as_a_participant"letmodel=ChatParticipant()}finalclassOtherParticipant:ModelAlias{staticletname:String="other_participant"varmodel=ChatParticipant()}return User.query(on: db).join(OtherParticipant.self, on: \User.$id == \OtherParticipant.$user.$id).all()
The text was updated successfully, but these errors were encountered:
When trying to do the following, I get an error
Operator function '==' requires the types 'OtherParticipant' and 'ChatParticipant' be equivalent
. The following compiles if I use\OtherParticipant.$id
. The ModelAliasOtherParticipant
no longer matches\OtherParticipant.$user.$id
's modelChatParticipant
.The text was updated successfully, but these errors were encountered: