Gremlinq / ExRam.Gremlinq

A .NET object-graph-mapper for Apache TinkerPop™ Gremlin enabled databases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using cosmos and receiving json conversion error

AnQueth opened this issue · comments

commented

Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'Newtonsoft.Json.Linq.JToken'.'

   string PK = "PK";

        await gremlinQuerySource.V().Drop();
        var r = await gremlinQuerySource.AddV(new Service
        {
            Id = "Bidding",
            Label = "Service",
            Name = "Bidding",
            PartitionKey = PK
        }).FirstAsync();

internal class Service : Vertex
{
public string Name { get; set; }
}

public class Vertex
{
    public object? Id { get; set; }
    public string? Label { get; set; }
    public string PartitionKey { get; set; } = "PartitionKey";
}
commented

looks like you need to add gremlin.net support for latest version of it.

"Hello @AnQueth,"

"thanks for your interest in ExRam.Gremlinq. The issue was labelled "Repro repository missing" because although the issue template asks for either "a link to GitHub repository containing a minimal executable project structure that exposes the unexpected behaviour" or "a pull request to ExRam.Gremlinq that adds a failing unit test to the ExRam.Gremlinq tests asserting the expected behaviour", it seems you provided neither. Most problems already solve themselves when isolated and if they don't, you will have made it easier for the maintainer of this project to investigate a possible bug.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.