I have an Account object that has a "Incoming" relation with other Account Objects.
I need a cypher query that retrieves a complete list of accounts sorted by the number of followers each Account. So if, account 1 has to 200 followers and account 2 has 100, then account 1 will at the top of the list. Result should also be in Pageable format Here is the Model Class @NodeEntity public class Account implements Serializable{ @GraphId private Long id; ... @Fetch @RelatedTo(type="follows", direction= Direction.OUTGOING, elementClass = Account.class) private Set<AccountGraph> following = AppUtil.newHashSetInstance(); @Fetch @RelatedTo(type="follows", direction= Direction.INCOMING, elementClass = Account.class) private Set<Account> followers = new HashSet<Account>(); ... } -- 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.