I’m trying to do something conceptually simple. I believe I need to use the aggregation framework and I’ve looked at the doc for aggregation, but it is incomprehensible to me. I have two collections and I want to find the difference between them, excluding the _id field.
That is, if I have a document in collection A that looks like:
{
“_id” : ObjectId(“66438f2e9e425d33267d3527”),
“subjectId” : “GTEX-111CU”,
“sex” : “male”,
“ageBracket” : “50-59”,
}
and an entry in collection B that is identical except for the _id, that should not represent a difference.
Basically, I’m debugging a new loading script and I want to make sure that the results of my loading into a new collection are the same as the contents of the existing collection.
I’m aware that Studio 3T has a tool in the Pro version that will do this, but I only have a license for the Basic version, so that isn’t a viable solution for me.