Hi team, While declaring relationships as per the ...
# troubleshoot
h
Hi team, While declaring relationships as per the no-code model using the @Relationship annotation, we specify the entityTypes field. Is there any validation on the corresponding aspect at the time of ingestion. I ask this since I was trying out ingestion via the rest api, and in the ownership aspect I provided dummy urns (instead of legitimate corpuser/corpgroup urns), but still it got indexed into neo4j and the previously non-existent nodes(which weren't valid entities in the system) got created as the destination of the 'OwnedBy' relationship. Is this expected or something that I might be missing ?
m
Hi @hallowed-pager-87903: as long as they are well formatted urns, the edges will be created, since we don’t want to depend on “order of ingestion” … edges can be ingested before nodes exist.
if this is something that you don’t want to happen, it can probably be something we can enhance in the index applier, to not create edges to nodes that don’t yet exist.
is the question about validating that the urn is indeed a corpUser/corpGroup urn ?
h
Hi @mammoth-bear-12532, thanks for the quick response. Yes correct, my question is around that. Do we validate if the urn is a valid urn as per the
entityTypes
field in the @Relationship annotation.
m
ah good question : I’d have to check .. but if we don’t … we should 🙂
h
Sure. I'll also go through the code to get a better understanding on this. Thanks !