Skip to content

Problom with aggregation [V5] #3397

@pk4all

Description

@pk4all

Discussed in #3387

Originally posted by pk4all December 3, 2021
"sum" Not working with "withAggregate" with this query

My query is

q.withAggregate('operations',otq=>{
                            otq
                            .pojo<{totalOprationTime:number}>()
                            .sum('time_in_mintues * occurance').as('totalOprationTime')
                          })

Please help me. @thetutlage @McSneaky @RomainLanz
Thanks;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions