Skip to content

DocumentDB: cursur within transaction not supported, rest API 500 error above 101 results #4438

Open
@mvdve

Description

@mvdve

Link to reproduction

No response

Describe the Bug

When calling a rest endpoint with a limit higher then 101 and more then 101 results, DocumentDB throws the following error:

MongoServerError: Feature not supported: cursor within transaction. Try increasing the batchsize

This seems to be causes by a limitation of Documentdb

To Reproduce

  • Add more then 101 items to a collection
  • Open de admin interface and copy a collection view rest api call
  • Up the limit to 102 and the api call will return an 500 error {"errors":[{"message":"Something went wrong."}]}

Payload Version

2.3.1

Adapters and Plugins

@payloadcms/db-mongodb

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions