Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多标签数据映射问题 #120

Closed
zb139407 opened this issue Jan 11, 2023 · 6 comments
Closed

多标签数据映射问题 #120

zb139407 opened this issue Jan 11, 2023 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@zb139407
Copy link
Contributor

微信图片_20230111161136
当一个VID存在多个tag时,是否可以获取resultType上的tag;如果是默认取第一个,则其他的tag数据无法映射上

@CorvusYe
Copy link
Collaborator

是的,目前的版本还不支持多标签。
这个功能列在#101 Vertex multi labels support. 作为计划内待开发的功能。

@CorvusYe
Copy link
Collaborator

微信图片_20230111161136 当一个VID存在多个tag时,是否可以获取resultType上的tag;如果是默认取第一个,则其他的tag数据无法映射上

两个标签对应的实体是否存在继承关系,方便描述下这里两个类的关系吗

@zb139407
Copy link
Contributor Author

大概什么时候能出这个功能

@zb139407
Copy link
Contributor Author

两个标签对应的实体是否存在继承关系,方便描述下这里两个类的关系吗

两个标签没有继承关系,当前需求有一个主标签:企业,四个普通标签,一个节点会有主标签:企业、多个普通标签

@CorvusYe
Copy link
Collaborator

大概什么时候能出这个功能

有需求就会尽快修复,差不多这一两天。

没有继承关系的情况下可能比较不好处理,毕竟一个节点不能创建成一个简单对象。需要借助集合或Map来实现。
你这边对返回的结果类型有什么想法吗~

@CorvusYe CorvusYe added bug Something isn't working good first issue Good for newcomers labels Jan 12, 2023
CorvusYe added a commit that referenced this issue Jan 13, 2023
fix: #120 and new feat: multi tags support.
@CorvusYe
Copy link
Collaborator

两个标签没有继承关系,当前需求有一个主标签:企业,四个普通标签,一个节点会有主标签:企业、多个普通标签

多标签的特性已经合并,可以试试让普通标签的实体类继承主标签的实体类,
这样普通标签在selectById的时候可以同时赋值当前实体类属性跟主标签实体类属性,
目前的缺点是没有办法赋值其他三个普通标签的属性,只能主标签+一个普通标签

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants