Compare two array fields in same document
问题 I have two different Arrays with Data and I have to merge two arrays same object in one object how can I merge with help of MongoDB Aggregation. here are my two Arrays {"ids" : [ { "_id" : ObjectId("5ba8d8dfaa988532967029af"), "level" : 2, "completed" : 5, "asset" : ObjectId("5ba8caa1aa98853296702989") }, { "_id" : ObjectId("5ba8d8dfaa988532967029b0"), "level" : 2, "completed" : 3, "asset" : ObjectId("5ba8caf6aa9885329670298a") }, { "_id" : ObjectId("5ba8d8dfaa988532967029b1"), "level" : 2,