Florian Hockmann commented on TINKERPOP-1893:

What you're doing looks correct (although converting {{DateTime}} into an 
{{int}} and then a {{string}} is a bit strange, the recommended way would be to 
use {{DateTimeOffset}} which will be serialized automatically by Gremlin.Net, 
but that's unrelated to your problem).

I tried to reproduce this with a simple unit test on {{master}} that basically 
does the same as what you showed in your screen shots:
public void AddLabelTest()
    var graph = new Graph();
    var connection = _connectionFactory.CreateRemoteConnection();
    var g = graph.Traversal().WithRemote(connection);

        var vertices = g.AddV("someLabel").Property("name", 

        Assert.Equal("someLabel", vertices.First().Label);
        Assert.Equal(1, g.V().Has("someLabel", "name", 
        Assert.Equal("someLabel", g.V().Has("someLabel", "name", 
        g.V().Has("someLabel", "name", "someName").Drop().Iterate();
but that ran successfully. Next step will be to check with the pre-release 
NuGet packages and the Docker image that you used.

If you want to help us finding the cause of this, then you can check whether 
this also occurs with the latest version of Gremlin Server which you can 
[download as a zip 

In the meantime, you should be able to set the label on vertices with another 
overload of {{AddV}}:
g.AddV(T.label, "someLabel").Property("name", "someName").Iterate();
This overload was removed in TinkerPop 3.3.0 as the recommend way to set the 
label is the one that you tried to use, so you can only use it with version < 
3.3.0. Would be good to hear if at least that works for you.

> AddV(string label) does not add label
> -------------------------------------
>                 Key: TINKERPOP-1893
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1893
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: dotnet
>    Affects Versions: 3.2.7, 3.3.1
>         Environment: Windows, IIS, docker
>            Reporter: Klaus Stephan
>            Assignee: Florian Hockmann
>            Priority: Major
>         Attachments: image-2018-02-19-15-45-22-135.png, 
> image-2018-02-19-15-45-33-986.png, image-2018-02-19-15-45-46-671.png
> public GraphTraversal<Vertex, Vertex> AddV(string label) does not add a label 
> to the vertex.
> Can someone please check this?
> Is there a workaround to set the label until the next build? (I am fairly new 
> to gremlin)
> I tried this on 3.3.2-rc1 and 3.2.8-rc1 (the majors don't work for me because 
> of TINKERPOP-1880)
> I use [https://hub.docker.com/r/bricaud/gremlin-server/] for testing.

This message was sent by Atlassian JIRA

Reply via email to