Java Mongodb Aggregate Projection Computed -


i have field in following format :

loc : { geo: {coor: []}} 

i unable fetch field using java com.mongodb.client.mongocollection.aggregate, aggregates.project( projections.fields( projections.computed())) method.

try projections.computed("coor", "$loc.geo.coor")


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -