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

get JSON query to mongo on aggregation as string

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.3
    • BSON
    • .NET c#

    Description

      IS it possible to get JSON (as string) for mongo from C# in code.
      Visual Studio Watch show's the string, but how to get it in code I can't understand.

      ^var aggregate = procuraCollection.Aggregate(new AggregateOptions()

      { AllowDiskUse = true, UseCursor = true }

      );
      var dd2 = Builders<BsonDocument>.Filter.Eq("RepositoryId", this.repositoryId);
      aggregate = aggregate.Match(dd2);
      var json= ?????;^

      Attachments

        Activity

          People

            Unassigned Unassigned
            AlexZ Alexander Zel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: