Skip to content

Custom query with page will generate duplicate order cypher #2940

Closed
@abccbaandy

Description

@abccbaandy
//page config
PageRequest pageable = PageRequest.of(0, 10, Sort.by(Sort.Order.asc("code")));

//Neo4jRepository
Page<Node> findByCode(String code, Pageable page);

will generate something like

ORDER BY node.code, node.code LIMIT 10

But with build-in function

.findAll(pageable);

It works fine.

test with spring boot 3.3.2

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions