Find answers from the community

Updated 2 months ago

Graph

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