Pictured above studentTransferRecord table, there are two size the same successSids and successPrice, now want to query two array subscript one-to-one result sets,
Eg: "58 add3050a01016066658c15" : "40,"
"58 add3050a01016066658c16" : "20",
"58 add3050a01016066658c17" : "30"
Try $unwind query
Above the 9 data, the result set is different, and want help ~ ~ great god query method
CodePudding user response:
"Mongo calculation difficulty summarized" part of this article is about the array of the query, you can refer to it