following scenario: I create a new user and store them into my database. For example:
const user = new User() user.hobby = "basketball" user.age = 12 await user.save()
I choosed an example where the stored attributes are not unique, let’s assume the primary key is an auto increment.
The .save() method only returns true or false.
Now I want to return the saved user - but how?
I do not know the primary key and I do not have any unique values I could use for a query…
Do I miss a thing?