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 nice if we could do something like this
interfaceUser{
id: string;
name: string;}constUserTable=db.table<User>('User');constresult=UserTable.find().exec();//=> result is now recognized as `User[]` so we can map over it etc.
Something we have to take into account is that when using limit(1) or findOne() it doesn't return an array but a single instance. Not sure if we can define that somehow.
The text was updated successfully, but these errors were encountered:
It would be nice if we could do something like this
Something we have to take into account is that when using
limit(1)
orfindOne()
it doesn't return an array but a single instance. Not sure if we can define that somehow.The text was updated successfully, but these errors were encountered: