Find answers from the community

Updated 6 months ago

Graph

At a glance

The community member has a question about how to change the "name" property in a NebulaGraph database. They are adding relations using the Relation class, and want to know if they need to set the "name" property or if the "label" is sufficient.

The comments indicate that this is a NebulaGraph-related issue, not Neo4j. The community members discuss accessing the label of the nodes, but this does not change the "name" property. They also encounter an issue with a query that fails due to an index not being found.

There is no explicitly marked answer in the comments, but the community members provide some suggestions and insights into the problem, though they are not NebulaGraph experts.

Hi Logan, hopw ya are doing well, I have a little question: how do I change "name" here:

{
"edges": [
{
"dst": "luis",
"name": "Relation__",
"props": {},
"src": "Logan"
},

here is how I'm adding the relations:

relation = Relation(
label="WORKS_FOR",
source_id=entity1.id,
target_id=entity2.id,
)
in order to provide a name, what Should I add?
or with label is enough?
L
b
8 comments
This is neo4j right? Or?

Pretty sure it's probably hardcoded (there needs to are a consistent label for types)
I'm sorry Logan, this is NebulaGraph
I'm askin this because label is inside props and I would like to know what is displayed in the graphs, if its name or label
I'm still here, but for now this doesn't matter as I'm using proerties(a).label, In this way its possible to access the label of the node, but this doesnt change the name: Relation__@,
but now I have another problem,, why this query doesn't work:

MATCH p = (a:Entity__ {name: 'Logan'})-[rel*3]-(i)
RETURN p
Query execution failed | Error found in optimization stage: IndexNotFound: No valid index found
I'm not anywhere near a nebula expert, so I can't really say why πŸ˜…
if someone has the same doubt, I made this wprks using:
MATCH p = (a)-[rel3]-(i)WHERE a.Entity.name == 'Logan'RETURN pbut yet, Idk why this doesn't work:MATCH p = (a:Entity {name: 'Logan'})-[rel3]-(i)
RETURN p
Add a reply
Sign up and join the conversation on Discord