I tried to create a schema for geojson but have had some problems with syntax for coordinates.
Here\'s my current code:
var DataSchema = new Schema({
A GeoJSON field has to be included a geometry type as a string. So a GeoJSON field must be defined like the following;
geometry: { type: { type: String }, coordinates: [Number] }
or if you want to define a default value you might use the below line;
geometry: { type: { type: String, default:'Point' }, coordinates: [Number] }
Good luck..