I'm trying to update and fetch the user information at the same time with patchAndFetchById. I use select to fetch limited user data from the database but it still returning me the whole information.
my code:
await UserModel .query() .patchAndFetchById(uid, data) .select([ "uid", "username", "updated_at AS updatedAt" ])
am i doing something wrong? please help me resolve this issue.
Thanks in advance
1.4m articles
1.4m replys
5 comments
57.0k users