Mongodb – how to retrieve an entity containing 2dsphere index from mongo database
the index created in mongo database Field in the entity @Indexed(name = "2dsphere") private Point location; This field in mongo db "location": { "type": "Point", "coordinates": [ 41.035137, 28.98953 ] } Try to retrieve entity from mongo db repository.findById(id).orElse(null) throws…