Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2253

Special case for JToken in SubmitAsync()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.4.0
    • None
    • dotnet
    • None

    Description

      A recent change to Gremlin.Net, made to address TINKERPOP-2067, broke existing functionality for the downstream library Gremlin.Net.CosmosDb.  That library invokes Gremlin.Net.Driver.Connection's `SubmitAsync<T>()` method, sending `JToken` as the generic type argument, and expects the query results to be run through `_graphSONReader.ToObject()`, but that step is now specifically skipped just for `JToken`.

      I propose that it would be better for Connection.SubmitAsync() to work the same for all types, as it did before, and that a new property in the class (or an optional method parameter) could be used to configure when the graphSON reader should be bypassed.

      The breaking change was merged with this pull request:  https://github.com/apache/tinkerpop/pull/972

      As a cross-reference, the GitHub issue documenting the problem with Gremlin.Net.CosmosDb can be found here: https://github.com/evo-terren/Gremlin.Net.CosmosDb/issues/49

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              SamHard Sam Hard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: