Skip to content

Question. Set custom label om MergeEntity #23

@tlogik

Description

@tlogik

Hi.
Is it possible to specify the label and/or labels to use when using the MergeEntity method?

Right now it just gets the typename of the class as label but i would like to decorate with other Neo labels as well.
Is that possible somehow?

example

 foreach (var subject in fbPagePost.Subjects)
                            {
                                var cq = client.Cypher
                                    .MergeEntity(fbPagePost, "fbpost")
                                    .MergeEntity(subject, "subject", labels: new []{"label1", "label2", "label3"})
                                    .MergeRelationship(new RelatesToRelationship("fbpost", "subject"));
                                cq.ExecuteWithoutResults();
                            }

Cheers
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions