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
I think it makes more sense to return a list. Because in the case the elment(s) is/are found they are present in the list and otherwise the list is empty.
I would vote for fixing the type spec to insert([t()] | t()) :: [Diplomat.Key.t()] | Diplomat.Client.error()
According to Hex,
Diplomat.Entity.insert/1
's spec is:However, it seems that it returns
[Diplomat.Key.t()]
when success.I think it should return
{:ok, Diplomat.Key.t()}
.The text was updated successfully, but these errors were encountered: