Skip to content

Can't use Poco::MongDB::Cursor on aggregation cursor #2470

@tomaz-beltram

Description

@tomaz-beltram

Expected behavior

Aggregation query has a cursor option introduced in version 2.6 that is mandatory since version 3.6. This option allows to retrieve large results (BSON >16 MB) in batches.

Actual behavior

Unfortunately Poco::MongoDB::Cursor can't be used on the aggregation query since the cursor ID is returned in the response document and not on the wire protocol.

Steps to reproduce the problem

(please make this a SSCCE, if applicable and reasonable)
Try to use Cursor::query() to construct aggregation query.

POCO version

develop

Compiler and version

gcc 7.3

Operating system and version

Ubuntu 18.04

Other relevant information

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions