Is it possible to fetch Page
results when using Spring Data Graph (Neo4J) as the data store?
The findAll(Pageable)
seems to be the only Pageable query availalble when using the GraphRepository
. What I am looking for is Pageable
APIs for other findBy***()
like queries.
Perhaps, there may be a completely different (recommended) way to Page results using Spring Data Graph. Thoughts on that are welcome as well!
Spring Data Neo4j (2.0 currently in SNAPSHOT but soon RC1) added Page support for the derived and annotated queries. The
findAll()
is inherited from CRUD-Repository.We could add Page support for the default query methods. Could you raise a JIRA issue for that?
Example for derived and
@Query
annotated Page methods.Just add cypher (or gremlin) as dependency to your application: