Closed rizen closed 5 months ago
decided we should use get on child relationships because it's not async, but shouldn't on parent because it is
const user = await s3file.user()
makes sense
const users = await s3file.avatarUsers().findMany()
makes less sense than const users = await s3file.avatarUsers.findMany()
Right now we have a
get
on methods likeapikeys
andavatar
in the User record, which abstracts the fact that it's a method. The problem is that reallyavatar
is async and it doesn't look like it. We should rethink this to try to make it more consistent. I'm thinking we should get rid ofget
from the class for relationships, but I need to think some more about it.