sequelize difference between hasone and hasmany

Query is equal, 

hasone return the first instance  from the collection,hasmany return the whole collection.

猜你喜欢

转载自www.cnblogs.com/ybleeho/p/9772902.html