Im trying to figure out how can I manipulate my database using adonis repl. I understand models.User is what I should start with to manipulate Users table and I tried using models.User.query() and this function does exist but I cannot understand how to use this method because I was expecting it to bring back all the users but it seems to be bringing back an instance and configurations of model. my goal is to query users and then change the role of a certain user that I query with it's username.
somthing like this:
models.User.query().select().where('username','admin')
and then :
admin.role='editor'