Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list=db.getCollection('MCOFiber').find({},{LaSol:1, "MCO.Consistency.Circuit.FiberSwitch.LogicalPortName" : 1,"MCO.Order.CreationDate" : 1 } ).sort( { "MCO.Consistency.Circuit.FiberSwitch.LogicalPortName" : -1 } )
- for(var i=0; i < list.length() ; i++) {
- var ob = { LaSol : list[i].LaSol,
- data : list[i].MCO.Order.CreationDate ,
- port: (list[i].MCO.Consistency.Circuit.FiberSwitch == null ?"":list[i].MCO.Consistency.Circuit.FiberSwitch.LogicalPortName)};
- print( ob);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement