Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
type alias $geoPolygon
import { type $geoPolygon } from "https://deno.land/x/mongo@v0.31.1/src/types/geospatial.ts";

Example:

{
  $geometry: {
    type: "Polygon",
    coordinates: [ [ [ 0 , 0 ] , [ 3 , 6 ] , [ 6 , 1 ] , [ 0 , 0 ] ] ]
  },
}

https://www.mongodb.com/docs/manual/reference/geojson/#polygon

definition: GeoJsonOperators<Polygon>