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
It would be handy to have a .reload() on the models to re-fetch them from the DB instead of having to manually get the id and then load by id. This would be especially useful when writing unittests if you want to check an API modified a model as expected.
For reference Arangodantic has such functionality.
The text was updated successfully, but these errors were encountered:
Yep my tests do a lot of such refreshing too, so +1 for the need from here. No idea about the best design but maybe it's just such a reload method indeed.
It would be handy to have a
.reload()
on the models to re-fetch them from the DB instead of having to manually get the id and then load by id. This would be especially useful when writing unittests if you want to check an API modified a model as expected.For reference Arangodantic has such functionality.
The text was updated successfully, but these errors were encountered: