You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quoting from the referenced contributing guidelines when creating a new issue:
If you have a question about Mongoose (not a bug report) please post it to either StackOverflow, or on Gitter
You are more likely to get a response much sooner on either of those while not adding to a backlog of bugs/features that the maintainers need to sift through here.
// in the schma declaration'loc': {type: {type: String,enum: "Point",default: "Point"},coordinates: {type: [Number],default: [0,0]}}// after schema declaration*schema.index({loc: "2dsphere"});// and then, how I create itmodel.loc={type: "Point",coordinates: [newarena.lng,newarena.lat]};
Do you want to request a feature or report a bug?
possible bug
What is the current behavior?
can't save coordinates in geospatial
Sorry to come here, but I can't find a solution.
This is my schema:
I'm trying insert a new record:
db.users.insert({email: 'test2@teste.com', password: 'tebrwrw', name: 'teste', type: true, geo: { coordinates: [ 40, 5 ]} })
and I'm getting this error:
Please mention your node.js, mongoose and MongoDB version.
lastest
The text was updated successfully, but these errors were encountered: