diff --git a/reference/mongo/mongocollection/ensureindex.xml b/reference/mongo/mongocollection/ensureindex.xml
index 40a96be743..d9dcce1c9b 100644
--- a/reference/mongo/mongocollection/ensureindex.xml
+++ b/reference/mongo/mongocollection/ensureindex.xml
@@ -18,7 +18,9 @@
arrayoptions
- A unique index cannot be created on a field if multiple existing documents do not contain the field. The field is effectively &null; for these documents and thus already non-unique.
+ A unique index cannot be created on a field if multiple existing documents do
+ not contain the field. The field is effectively &null; for these documents
+ and thus already non-unique.
diff --git a/reference/mongo/mongocursor/fields.xml b/reference/mongo/mongocursor/fields.xml
new file mode 100644
index 0000000000..77e0034c6b
--- /dev/null
+++ b/reference/mongo/mongocursor/fields.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+ MongoCursor::fields
+ Sets the fields for a query
+
+
+
+ &reftitle.description;
+
+ public MongoCursorMongoCursor::fields
+ arrayf
+
+
+ Fields are specified by "fieldname" : bool. &true;
+ indicates that a field should be returned, &false; indicates that it should
+ not be returned. You can also use 1 and 0 instead of &true; and &false;.
+
+
+ Thus, to return only the "summary" field, one could say:
+
+
+fields(array("summary" => true));
+
+?>
+]]>
+
+
+ To return all fields except the "hidden" field:
+
+
+fields(array("hidden" => false));
+
+?>
+]]>
+
+
+
+
+ &reftitle.parameters;
+
+
+
+
+ f
+
+
+
+ Fields to return (or not return).
+
+
+
+
+
+
+
+
+ &reftitle.returnvalues;
+
+ Returns this cursor.
+
+
+
+
+ &reftitle.errors;
+
+ Throws MongoCursorException if this cursor has started
+ iterating or a scalar argument is given.
+
+
+
+
diff --git a/reference/mongo/mongodb/command.xml b/reference/mongo/mongodb/command.xml
index 3f8bfe1038..75c90600d7 100644
--- a/reference/mongo/mongodb/command.xml
+++ b/reference/mongo/mongodb/command.xml
@@ -66,6 +66,8 @@ public function command($data) {
people;
+
$people->insert(array("name" => "Joe", "age" => 4));
$people->insert(array("name" => "Sally", "age" => 22));
$people->insert(array("name" => "Dave", "age" => 22));
diff --git a/reference/mongo/versions.xml b/reference/mongo/versions.xml
index 8c0947955c..2d50d0d352 100644
--- a/reference/mongo/versions.xml
+++ b/reference/mongo/versions.xml
@@ -72,6 +72,7 @@
+