Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Nov 27, 2024
1 parent 6fe55c5 commit 99bd8db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mongo/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,9 @@ func (coll *Collection) find(
if args.NoCursorTimeout != nil {
op.NoCursorTimeout(*args.NoCursorTimeout)
}
if args.OplogReplay != nil {
op.OplogReplay(*args.OplogReplay)
}
if args.Projection != nil {
proj, err := marshal(args.Projection, coll.bsonOpts, coll.registry)
if err != nil {
Expand Down Expand Up @@ -1518,6 +1521,7 @@ func newFindArgsFromFindOneArgs(args *options.FindOneOptions) *options.FindOptio
v.Hint = args.Hint
v.Max = args.Max
v.Min = args.Min
v.OplogReplay = args.OplogReplay
v.Projection = args.Projection
v.ReturnKey = args.ReturnKey
v.ShowRecordID = args.ShowRecordID
Expand Down

0 comments on commit 99bd8db

Please sign in to comment.