[GODRIVER-2638] How to write a wrapper function for FindOptions in go mongo-driver Created: 01/Nov/22 Updated: 27/Oct/23 Resolved: 14/Nov/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | karthick d | Assignee: | Matt Dale |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I want to write a wrapper function for FindOptions in my dbobject code so that I can avoid importing package options in my service code . Basically i'm trying to accomodate three func under one interface
Also I want to know the usage of MergeFindOptions
Any examples will be of great help. |
| Comments |
| Comment by Matt Dale [ 14/Nov/22 ] | ||
|
karthickcseapitam@gmail.com thanks for following up! Closing this as requested. | ||
| Comment by karthick d [ 08/Nov/22 ] | ||
|
This one is sorted out , please close this ticket . | ||
| Comment by karthick d [ 02/Nov/22 ] | ||
|
i should be able to do something like Find().SetSkip().SetLimit() in a single line , is that doable ? i dont want to do something like this
|