[GODRIVER-411] Working Find example with OptSort Created: 09/May/18 Updated: 27/Oct/23 Resolved: 31/May/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Thomas Geulen | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I want use find with OptSort but this does not work as expected. I want do the following in my golang application
When I create my options instancen with
the find method returns 0 results. Am I using this wrong? |
| Comments |
| Comment by Thomas Geulen [ 25/May/18 ] | ||
|
Sorry, was my mistake. Works as expected | ||
| Comment by Kristofer Brandow (Inactive) [ 10/May/18 ] | ||
|
Hi thomas.geulen, I just threw together an example with this and it appears to be working for me. What version of Go, MongoDB, and the Go driver are you using? Also, are you sure your document has a key that's a string and not an ObjectID? --Kris | ||
| Comment by Thomas Geulen [ 09/May/18 ] | ||
|
Sorry, there was a mistake in my previous example.
|