Spring Data Neo4j 4 Pageable with org.neo4j.ogm.session.Session.query

426 Views Asked by At

Is it possible in Spring Data Neo4j 4 to use Pageable with org.neo4j.ogm.session.Session like session.query(characteristicCypher, parameters);

If so, could you please show an example ?

1

There are 1 best solutions below

2
On BEST ANSWER

No. org.springframework.data.domain.Pageable is not compatible with the OGM Session.

You can use the OGM native org.neo4j.ogm.cypher.query.Pagination with Session though. You can see examples of how to use that in the OGM test source.