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
If multiple documents satisfy the query, this method returns the first document according to the natural order which reflects the order of documents on the disk.
So if you need first document from sorted set, use something like ->sort([])->limit(1)->all()->current()
Hello,
How I get one document with use Cursor method ->sort().
Method ->one() don`t using ->sort(), and methot ->current() deprecated.
The text was updated successfully, but these errors were encountered: