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
The FirstOrCreate method in Gorm Gen does not return the result object, which prevents accessing RowsAffected. The documentation suggests that FirstOrCreate should return the count of rows affected, but the actual method signature is:
FirstOrCreate() (*model.Email, error)
How can I access RowsAffected with the current method signature?
The document you expected this should be explained
Your Question
The
FirstOrCreate
method in Gorm Gen does not return theresult
object, which prevents accessingRowsAffected
. The documentation suggests thatFirstOrCreate
should return the count of rows affected, but the actual method signature is:How can I access
RowsAffected
with the current method signature?The document you expected this should be explained
I expected this to be explained in the Gorm Gen FirstOrCreate.
Expected answer
I would like guidance on how to retrieve
RowsAffected
or a method update to include this information.Thank you!
The text was updated successfully, but these errors were encountered: