db.RunCommand() does work for "find" command in c#

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Blocker - P1
    • None
    • Affects Version/s: 1.10.1
    • Component/s: API
    • Environment:
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am running following command in C# using mongo .NET AP.

       var client = new MongoClient();
       var database = client.GetServer().GetDatabase("MarketData");
       var command = new CommandDocument
                   {
                      { "find", "equity"}
                  };
      CommandResult result = database.RunCommand(command);
      

      And Error I see is:
      MongoCommandException was unhandled.
      Command 'find' failed: find command not yet implemented (response:

      { "ok" : 0.0, "errmsg" : "find command not yet implemented" }

      )

        1. code.txt
          0.5 kB
          Nikhil Salunkhe

            Assignee:
            Unassigned
            Reporter:
            Nikhil Salunkhe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: