Collection such as:
{"_id":Obj,"fir":1,"sec":1,"trd":"xxx"}
{"_id":Obj,"fir":1,"sec":2,"trd":"few"}
{"_id":Obj,"fir":1,"sec":3,"trd":"ver"}
{"_id":Obj,"fir":1,"sec":1,"trd":"xfsd"}
{"_id":Obj,"fir":1,"sec":2,"trd":"cdsv"}
{"_id":Obj,"fir":1,"sec":3,"trd":"xedsv"}
{"_id":Obj,"fir":1,"sec":1,"trd":"crv"}
{"_id":Obj,"fir":1,"sec":2,"trd":"cre"}
{"_id":Obj,"fir":1,"sec":3,"trd":"xewfr"}
{"_id":Obj,"fir":2,"sec":1,"trd":"xxx"}
{"_id":Obj,"fir":2,"sec":2,"trd":"few"}
{"_id":Obj,"fir":2,"sec":3,"trd":"ver"}
{"_id":Obj,"fir":2,"sec":1,"trd":"xfsd"}
{"_id":Obj,"fir":2,"sec":2,"trd":"cdsv"}
{"_id":Obj,"fir":2,"sec":3,"trd":"xedsv"}
{"_id":Obj,"fir":2,"sec":1,"trd":"crv"}
{"_id":Obj,"fir":2,"sec":2,"trd":"cre"}
{"_id":Obj,"fir":2,"sec":3,"trd":"xewfr"}
now,I want get this result:
{"_id":Obj,"fir":1,"sec":1,"trd":"xxx"}
{"_id":Obj,"fir":1,"sec":2,"trd":"few"}
{"_id":Obj,"fir":1,"sec":3,"trd":"ver"}
This means I just want to get one "sec" document for each sec.Can anyone know how to query it?