note 121110 added to mongocollection.createindex

From: Date: Mon, 22 May 2017 05:50:10 +0000
Subject: note 121110 added to mongocollection.createindex
Groups: php.notes 
Request: Send a blank email to php-notes+get-209080@lists.php.net to get a copy of this message
For PHP 7.x Create index using MongoDB\Driver $command = new \MongoDB\Driver\Command([ 'createIndexes' => 'my_collection_name', 'indexes' => [[ 'name' => 'my_index_name', 'key' => ['my_field_name' => 1] ]] ]); $instance = new \MongoDB\Driver\Manager('mongodb://127.0.0.1:27017'); $instance->executeCommand('my_db_name', $command); ---- Server IP: 72.52.91.14 Probable Submitter: 91.206.30.12 ---- Manual Page -- http://php.net/manual/en/mongocollection.createindex.php Edit -- https://master.php.net/note/edit/121110 Del: integrated -- https://master.php.net/note/delete/121110/integrated Del: useless -- https://master.php.net/note/delete/121110/useless Del: bad code -- https://master.php.net/note/delete/121110/bad+code Del: spam -- https://master.php.net/note/delete/121110/spam Del: non-english -- https://master.php.net/note/delete/121110/non-english Del: in docs -- https://master.php.net/note/delete/121110/in+docs Del: other reasons-- https://master.php.net/note/delete/121110 Reject -- https://master.php.net/note/reject/121110 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209080) next »