简体   繁体   English

在Neo4jClient中为创建的节点分配标签

[英]Assigning a label to a created node in Neo4jClient

I want to create some nodes of type Person and Books using Neo4jClient. 我想使用Neo4jClient创建一些Person和Books类型的节点。

To do that, I have class Person like this: 为此,我需要像这样的Person类:

Public Class Person
{
      Public String Name;    
}

To create node, I have written something like this: 为了创建节点,我写了这样的东西:

Var RefA = client.Create(new Person(){Name ="John"});

(Client -> GraphicClient) (客户端-> GraphicClient)

When I saw the created node in Neo4j web interface, no label was assigned to the created node. 当我在Neo4j Web界面中看到创建的节点时,没有标签分配给创建的节点。 I thought that Person would be the label. 我以为Person是标签。 How can I assign a label to the created node using Neo4jClient. 如何使用Neo4jClient向创建的节点分配标签。 I want queries like 'Match(n:Person)' but because no types have been created it is not possible to do that. 我想要类似“ Match(n:Person)”的查询,但是由于尚未创建任何类型,因此无法做到这一点。

Thanks a lot in advance. 非常感谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM