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
have you been considering a function providing only the first model by fetch?
DB table image:
image_id
user_id
is_main
....
database.get('image').query(Q.where('user_id', '1'), Q.where('is_main', true)).fetchOne() returning promise to provide only one model? Sure I can store relation to main image on table user, just a suggestion:-)
Big thank you for the job you have done, and for the job you are going to do in the future:-)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello @radex,
have you been considering a function providing only the first model by fetch?
DB table image:
....
database.get('image').query(Q.where('user_id', '1'), Q.where('is_main', true)).fetchOne()
returning promise to provide only one model? Sure I can store relation to main image on tableuser
, just a suggestion:-)Big thank you for the job you have done, and for the job you are going to do in the future:-)
Tom
Beta Was this translation helpful? Give feedback.
All reactions