[CSHARP-1840] How to use “find” Shell Created: 29/Nov/16 Updated: 05/Apr/19 Resolved: 30/Nov/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Hu | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I write some code for run shell var args = new EvalArgs { Args = Params.ToArray(), Code = js }; When I run shell db.GroupTest.find({}); via C#. { , , , , what I really want is the dataset records. How can I do it?Thank you. |
| Comments |
| Comment by Robert Stam [ 30/Nov/16 ] |
|
When using a driver you should always use the API provided by that driver, not the API provided by the shell. Also, use of eval is deprecated and it is likely to be removed entirely from the server at some point. |