AddPasskeyIDs adds the "passkey" edge to the Passkey entity by ids.
(ids ...int)
| 15920 | |
| 15921 | // AddPasskeyIDs adds the "passkey" edge to the Passkey entity by ids. |
| 15922 | func (m *UserMutation) AddPasskeyIDs(ids ...int) { |
| 15923 | if m.passkey == nil { |
| 15924 | m.passkey = make(map[int]struct{}) |
| 15925 | } |
| 15926 | for i := range ids { |
| 15927 | m.passkey[ids[i]] = struct{}{} |
| 15928 | } |
| 15929 | } |
| 15930 | |
| 15931 | // ClearPasskey clears the "passkey" edge to the Passkey entity. |
| 15932 | func (m *UserMutation) ClearPasskey() { |
nothing calls this directly
no outgoing calls
no test coverage detected