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

Nesting external json queries and execute them

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.4
    • API
    • None
    • Windows

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: