Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-17-2018 02:30 AM
Hi again,
I've been having some trouble with changing the labels for my nodes with the neo4j-ogm framework. While using the @Labels annotation for a collection of labels I can load labels from the graph just fine, as well as store new labels, but if I try to remove a label the node is unchanged. I think I might be using the ogm framework wrong. Is there something else I should do if I need to change labels for node?
For instance if I have a node in the graph (myNode:A:B { id: "myId" })
. This code below does not work:
@NodeEntity
public class A {
@Id String id;
@Labels List<String> labels;
}
---
A a = session.load(A.class, "myId");
a.labels.remove("B");
session.save(a);
The node will still have the label :B attached to it
10-22-2018 03:44 AM
Thanks for reporting this. We track this here:
I agree, looks like bug.
12-06-2018 01:24 AM
Just to let you know: This is fixed and will be released in 3.1.6 and 3.2.
Thank you for your feedback.
All the sessions of the conference are now available online