Skip to content

This repository has for goal to reproduce an issue on missing expected error field "errmsg" when inserting an unordered bulk of GeoJSON in MongoDB

Notifications You must be signed in to change notification settings

sogelink/MongoDB-invalid-errmsg-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install dependencies:

npm install

Run MongoDB 4.2

docker run -d -p 10000:27017 --name mongodb-4.2-polygon-test mongo:4.2

Connect to MongoDB and set a geometrical index

mongo localhost:10000

db.getCollection("docs").createIndexes([{geometry: "2dsphere" }])

Run the test:

node app

Optional

If the index creation fails, remove documents before the index creation: db.getCollection("docs").remove({}) db.getCollection("docs").createIndexes([{geometry: "2dsphere" }])

About

This repository has for goal to reproduce an issue on missing expected error field "errmsg" when inserting an unordered bulk of GeoJSON in MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published