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

Nesting external json queries and execute them

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.4
    • Component/s: API
    • None
    • Environment:
      Windows
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We are trying to nest a jsonquery (maybe read from an external text file) in c# code.
      We were using
      var query = MongoDB.Bson.Serialization.BsonSerializer.Deserialize<BsonDocument>(jsonString)
      and then we were used to invoke QueryComplete to execute the query.
      In the last version of C# driver this way is deprecated (there is not QueryComplete anymore).

      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)?
      Please keep in mind that the application doesn't know what is the collection nor the aggregation pipeline in the query...

      Thanks a lot and best regards,
      Lanfranco

            Assignee:
            Unassigned Unassigned
            Reporter:
            lanfranco.morini@brainforce.it Lanfranco Giuseppe Morini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: