On an empty graph:Code:org.springframework.data.neo4j.support.typerepresentation.AbstractIndexingTypeRepresentationStrategy @Override public Object readAliasFrom(S propertyContainer) { if (propertyContainer == null) throw new IllegalArgumentException("Relationship or Node is null"); return propertyContainer.getProperty(TYPE_PROPERTY_NAME); }
while the query works in Console
The same query executed thru Cypher withCode:start n=node(*) return n; ==> +-----------+ ==> | n | ==> +-----------+ ==> | Node[0]{} | ==> +-----------+
doesn't catch the exception thrown by org.neo4j.rest.graphdb.entity.RestEntity.getProper ty while querying from the __type__ property that doesn't exist in an empty graph.Code:@Query("start n=node(*) return n")


Reply With Quote