Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .reload() to models #65

Open
joakimnordling opened this issue Mar 4, 2024 · 1 comment
Open

Add a .reload() to models #65

joakimnordling opened this issue Mar 4, 2024 · 1 comment

Comments

@joakimnordling
Copy link
Contributor

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.

@antont
Copy link
Contributor

antont commented Mar 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants