3 ms·
I'm not familiar with it, but at first glance, "one()" stands in contrast to "multiple()". Either running a single query or running multiple queries in a reques
by athenot 5y ago
I'm not familiar with it, but at first glance, "one()" stands in contrast to "multiple()". Either running a single query or running multiple queries in a request.
- zachrip 5y agoIt is used for the amount of objects returned (not the amount of raw rows returned, to be clear). Many orms have `findOne` or `findAll` methods that return an object or an array respectively. Just helps to make things more ergonomic and usually appends a LIMIT clause.
- athenot 5y agoThanks for the correction. I guess that validates the OP's point after all.
- cabalamat 5y agoAh, that makes more sense now.