We're updating the issue view to help you get more done. 

Add support for count() function in JP-QL on MongoDB

Description

From the forum:

1 @NamedQuery(name = "blog_entry_count", query = "select count(be) from BlogEntry be")

When the blog_entry_count query is exequted, the result is of BlogEntry type. I would expect it to be a number in this case. Does ogm supports aggregate functions and count() in particular in HQL?

Environment

None

Status

Assignee

Aleksandr Mylnikov

Reporter

Gunnar Morling

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Sprint

Fix versions

Priority

Minor