entc/gen: check edge-field on mutation-cleared calls for edges

Fixed #1445
This commit is contained in:
Ariel Mashraki
2021-04-09 18:02:54 +03:00
committed by Ariel Mashraki
parent 106dd53d23
commit 8d7bb7fad6
29 changed files with 178 additions and 160 deletions

View File

@@ -233,7 +233,7 @@ func (m *UserMutation) ClearFriends() {
m.clearedfriends = true
}
// FriendsCleared returns if the "friends" edge to the User entity was cleared.
// FriendsCleared reports if the "friends" edge to the User entity was cleared.
func (m *UserMutation) FriendsCleared() bool {
return m.clearedfriends
}