Problems Running MongoDB\Collection::mapReduce()

Asked 2 years ago, Updated 2 years ago, 140 views

Recently, I have been worrying a lot about MongoDB's environment.
Environment:
·MongoDB Server 3.2.0
 (*Created database using MongoDB API in Microsoft Azure's CosmosDB)
·mongo_php_driver 1.4.3
·mongo_php_library 1.3.2
·PHP 5.6.35
Purpose:
·I would like to run MongoDB\Collection::mapReduce().
Problem:
·Exception 'MongoDB\Driver\Exception\RuntimeException' with message 'Command is not supported'

mongodb

2022-09-30 17:21

1 Answers

If you look at the release notes, it seems that executeReadCommand has been added since 1.4.0, so you don't actually use versions earlier than mongo_php_driver 1.4.0?
Could you please review composer.json to solve this problem?


2022-09-30 17:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.