Whenever I try to store a location in my mongodb it doesn\'t show, so I guess I\'m doing something wrong. I can\'t find any documentation on how to store a location in mongo
I fixed it myself.
I did this in my model:
loc : { type: {type:String}, coordinates: [Number]},
Underneath I made it a 2dsphere index.
eventSchema.index({loc: '2dsphere'});
And to add data to it:
loc: { type: "Point", coordinates: [ longitude, latitude ] },