iterate over findNodes(label) and test the property. I think cypher in 2.3 gets support for actually using an index for that, but I'm not sure I remember correctly.
Michael > Am 08.05.2015 um 17:08 schrieb Rita <[email protected]>: > > You can use methods hasLabel and hasProperty on nodes with Java API. > > Regards > Rita > > Il giorno giovedì 7 maggio 2015 22:16:09 UTC+2, Howard Lander ha scritto: > Hi all > > I've got kind of a funny question about the java API. I know about the > findNodesByLabelAndProperty method of the GraphDatabaseService, but that > method requires a value. In my case, I only want to know if there are 1 or > more nodes in the network with a given label and property, I don't know or > care about the values. Is there some relatively easy way of doing this? > > Thanks > Howard > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
