From 34cbb22f8b20eddcdc2d2b246b9f6e7f71dab986 Mon Sep 17 00:00:00 2001 From: Ryan Cino Date: Sat, 23 Feb 2013 17:29:57 -0500 Subject: [PATCH] Updated to document with valid JSON Previous way would throw a "invalid property id" error --- source/reference/operator/centerSphere.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/operator/centerSphere.txt b/source/reference/operator/centerSphere.txt index 10fda510217..40354013a30 100644 --- a/source/reference/operator/centerSphere.txt +++ b/source/reference/operator/centerSphere.txt @@ -28,6 +28,6 @@ $centerSphere .. code-block:: javascript - db.collection.find( { loc: { $within: { $centerSphere: { [88,30], 10 /* miles */ / 3959 /* miles */ } } } } ) + db.collection.find( { loc: { $within: { $centerSphere: [ [88,30], 10 /* miles */ / 3959 /* miles */ ] } } } ) .. include:: /includes/note-geospatial-index-must-exist.rst