Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1502

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • 1.10.1
    • API

    Description

      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" }

      )

      Attachments

        Activity

          People

            Unassigned Unassigned
            nikhilsalunkhe@gmail.com Nikhil Salunkhe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: