Skip to content

Commit dab9a5d

Browse files
authored
formatting fix
1 parent db256c2 commit dab9a5d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/cosmos-db/mongodb/vcore/geospatial-support.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,24 +218,24 @@ Performs a geospatial query to return documents sorted by distance from a specif
218218

219219

220220
* Currently, querying with a single-ringed GeoJSON polygon whose area exceeds a single hemisphere isn't supported. In such cases, Mongo vCore returns the following error message:
221-
```json
222-
Error: Custom CRS for big polygon is not supported yet.
223-
```
221+
```json
222+
Error: Custom CRS for big polygon is not supported yet.
223+
```
224224
* A composite index using a regular index and geospatial index isn't allowed. For example:
225-
```json
226-
db.collection.createIndex({a: "2d", b: 1});
227-
Error: Compound 2d indexes are not supported yet
228-
```
225+
```json
226+
db.collection.createIndex({a: "2d", b: 1});
227+
Error: Compound 2d indexes are not supported yet
228+
```
229229
* Polygons with holes are currently not supported for use with $geoWithin queries. Although inserting a polygon with holes is not restricted, it eventually fails with the following error message:
230230

231-
```json
232-
Error: $geoWithin currently doesn't support polygons with holes
233-
```
231+
```json
232+
Error: $geoWithin currently doesn't support polygons with holes
233+
```
234234
* The key field is always required in the $geoNear aggregation stage. If the key field is missing, the following error occurs:
235235

236-
```json
237-
Error: $geoNear requires a 'key' option as a String
238-
```
236+
```json
237+
Error: $geoNear requires a 'key' option as a String
238+
```
239239
* The `$geoNear`, `$near`, and `$nearSphere` stages don't have strict index requirements, so these queries wouldn't fail if an index is missing.
240240

241241
## Related content

0 commit comments

Comments
 (0)