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
Post a Comment