We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I tried to answer that question myself but I can't figure out the code exactly. Do you happen to know the answer ?
Thanks !
The text was updated successfully, but these errors were encountered:
Hi @JordanP
Yes it is the same - check https://github.com/globalsign/mgo/blob/master/session.go#L3391
Calling One() runs a findCmd with a limit of 1 the same as if you called Limit(1):
One()
findCmd
Limit(1)
expectFindReply := prepareFindOp(socket, &op, 1)
func prepareFindOp(socket *mongoSocket, op *queryOp, limit int32) bool { // <snip> find := findCmd{ // <snip> Limit: limit, } // <snip> }
Sorry, something went wrong.
Thank you !
domodwyer
No branches or pull requests
Hi,
I tried to answer that question myself but I can't figure out the code exactly. Do you happen to know the answer ?
Thanks !
The text was updated successfully, but these errors were encountered: