We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61413d9 commit 48546c1Copy full SHA for 48546c1
Sources/ZeeQL/Access/Relationship.swift
@@ -323,7 +323,10 @@ public extension Relationship {
323
ms += isToMany ? "[1:n]" : "[1:1]"
324
ms += " '\(entity.name)'"
325
326
- if let to = destinationEntity { ms += " to=\(to.name)" }
+ if let to = destinationEntity {
327
+ if to === entity { ms += "[SELF-JOIN]" }
328
+ else { ms += " to=\(to.name)" }
329
+ }
330
331
if !joins.isEmpty {
332
if joinSemantic != .innerJoin { ms += " \(joinSemantic)" }
0 commit comments