I am relatively new to Mongodb, and I need to do the following:
I have 2 tables, "records" and "files".
A row in the "records" table looks like this:
{ "_id" : ObjectId("6012d31aea8fb06d8bf438a0"), "img" : false, "type" : "DRAFT", "submitted" : true }
And a row in the "files" table looks like this:
{ "_id" : ObjectId("5fabf23f917863623ec54a86"), "filename" : "6012d31aea8fb06d8bf438a0", "uploadDate" : ISODate("2020-11-11T14:16:31.462Z"), "length" : NumberLong(4119) }
The field "filename" in the "files" table corresponds to the _id field in the "records" table.
How can I find all "files" whose filename is not an id in the "records" table?
Thanks!
Edit: * I am using Mongo version 3.6*