[CSHARP-1740] Nesting external json queries and execute them Created: 09/Aug/16 Updated: 17/Aug/16 Resolved: 17/Aug/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | 2.2.4 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Lanfranco Giuseppe Morini | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Description |
|
We are trying to nest a jsonquery (maybe read from an external text file) in c# code. Is there a new way to obtain the same results (that is writing a json\javascript query, put it in an external repository and then load and execute it when needed)? Thanks a lot and best regards, |
| Comments |
| Comment by Craig Wilson [ 17/Aug/16 ] | |||||||||||||||||||
|
Lanfranco, jsonString != javascriptString. You are essentially asking us to implement the Javascript language. We will not be doing that. Our purpose isn't to provide a shell interface inside .NET, but rather enable communicating with the server in a way typical for .NET developers. I'm going to close this as won't fix. Craig | |||||||||||||||||||
| Comment by Lanfranco Morini [ 17/Aug/16 ] | |||||||||||||||||||
|
UPDATE | |||||||||||||||||||
| Comment by Lanfranco Morini [ 12/Aug/16 ] | |||||||||||||||||||
|
Hi Craig:
or
without have to care if it contains a "find" or an "aggregate", or "orders" collection or "trades" collection. Summarizing, in Legacy Driver there was MongoDatabase.RunCommand(string) method: what did class\method substitute it? Best regards, | |||||||||||||||||||
| Comment by Craig Wilson [ 09/Aug/16 ] | |||||||||||||||||||
|
You can simply pass the json string to the Find method. I don't know what you've tried, but it should be simple enough.
|