get JSON query to mongo on aggregation as string

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.3
    • Component/s: BSON
    • Environment:
      .NET c#
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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= ?????;^

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

              Created:
              Updated:
              Resolved: