Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-31-2022 05:09 AM
I create a node, the node name is robot, the robots has a property, which is called 'capabilities'. For the capabilities, there is a list of all the capabilities for the robot. For example, the robot in the picture below has a capability lists, [Moving,ForceApplying].
Now I want to use matcher.match command in Py2neo to search for the robot node with specific capability. If the capability I am searching for is Moving. Then how do I write the code? Below is the code I write, but doesn't work,
a = matcher.match('Robot', capabilities = 'Moving').first()
06-02-2022 02:28 AM
I think that's not expressible (yet) with py2neo matchers, it seems that list properties are not yet supported for ` WHERE $value in node.capabilities`
https://py2neo.org/v4/matching.html#node-matching
In your model it might also make more sense to pull out those capabilities as extra nodes and link the robot to them.
All the sessions of the conference are now available online